mirror of
https://github.com/abh/ntppool.git
synced 2026-04-25 19:45:50 +03:00
[GH-ISSUE #12] Make monitor script a daemon #285
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntppool#285
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @abh on GitHub (Jun 3, 2011).
Original GitHub issue: https://github.com/abh/ntppool/issues/12
Change monitor script to run continuously (under supervise, systemd, launchd etc – not daemonized, though that could be an option, too).
Whenever the last API 'poll' returned servers to check it should do so again immediately after posting results; if there were no servers to check, wait two minutes before polling again.
@loewis commented on GitHub (Jun 4, 2011):
I propose https://github.com/loewis/ntppool/tree/issue12 as a patch. This creates a systemd "simple" service, which terminates on SIGTERM. I left in all the dies, which I hope should show up in the log files somehow. In some of the cases, it is probably better just to log an error message, and continue with the next loop iteration. If it dies, it should be the responsibility of the process manager to restart it (taking into consideration restart frequencies and such).
@abh commented on GitHub (Jun 4, 2011):
Didn't test it, but at a glance it looks good. Thanks! I pulled it into my master branch and will try it later.
@abh commented on GitHub (Jun 6, 2011):
commit
4e876252d7Author: Martin v. Loewis martin@v.loewis.de
Date: Sat Jun 4 22:38:49 2011 +0800