Refactor: Use short signal name

This commit is contained in:
Narvin Singh 2020-12-29 21:59:23 -05:00
parent 5f6db51c0a
commit a071b38a9d

4
xrsbs
View File

@ -91,6 +91,8 @@ while [[ "${first_run}" -eq 1 || -n "${repeat}" ]]; do
##sleep $(((24 - hms[0]) * 3600 - hms[1] * 60 - hms[2])) ##sleep $(((24 - hms[0]) * 3600 - hms[1] * 60 - hms[2]))
printf '%d\n' $(((24 - hms[0]) * 3600 - hms[1] * 60 - hms[2])) printf '%d\n' $(((24 - hms[0]) * 3600 - hms[1] * 60 - hms[2]))
;; ;;
*)
;;
esac esac
fi fi
fi fi
@ -101,6 +103,6 @@ while [[ "${first_run}" -eq 1 || -n "${repeat}" ]]; do
exit 1 exit 1
fi fi
for action in "${actions[@]}"; do touch "${ACTION_DIR}/${action}"; done for action in "${actions[@]}"; do touch "${ACTION_DIR}/${action}"; done
kill -SIGUSR1 "${daemon_pid}" kill -USR1 "${daemon_pid}"
done done