Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-11-27 | fix FreeBSD build | William Hubbs | |
This is for #186. | |||
2017-10-30 | fix issue with --reexec call | William Hubbs | |
2017-10-27 | supervise-daemon: use RC_SVCNAME as the first argument to the daemon | William Hubbs | |
This makes ps show which service the supervisor is monitoring. | |||
2017-10-27 | supervise-daemon: fix logging for reexec and the child command line | William Hubbs | |
2017-10-27 | log as supervise-daemon not the service | William Hubbs | |
2017-10-26 | supervise-daemon: clarify a log message | William Hubbs | |
2017-10-26 | supervise-daemon: log the command line we run to spawn the child process | William Hubbs | |
2017-10-26 | supervise-daemon: log with the service name instead of "supervise-daemon" | William Hubbs | |
2017-10-26 | supervise-daemon: remove child_pid from saved options during shutdown | William Hubbs | |
This allows us to detect when the supervisor dies unexpectedly because in that case child_pid will still exist. | |||
2017-10-24 | supervise-daemon: fix build issue for >=glibc-2.26 | William Hubbs | |
X-Gentoo-Bug: 635334 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=635334 | |||
2017-10-24 | supervise-daemon: multiple fixes | William Hubbs | |
- Harden against dying by handling all signals that would terminate the program and adding --reexec support - factor the supervisor into its own function - fix test for whether we are already running | |||
2017-10-18 | supervise-daemon: elevate some log messages to warnings | William Hubbs | |
Prior to this change, we were logging unexpected terminations of daemons we were supervising at the info level. This change moves the logs to warnings. | |||
2017-09-18 | ignore sigchld when shutting down the supervised process | William Hubbs | |
We need to do this to skip the zombie state for the child process since we are not easily able to wait() for it. | |||
2017-09-18 | typo fix | William Hubbs | |
2017-09-18 | typo fix | William Hubbs | |
2017-09-18 | supervise-daemon: code cleanup | William Hubbs | |
Clean up the process for killing an active supervisor when stopping. | |||
2017-09-14 | add quiet switch to do_stop in src-schedules.c | William Hubbs | |
This allows supervise-daemon to run this code without attempting to print some status messages used by start-stop-daemon. | |||
2017-09-06 | add quiet parameter to run_stop_schedule | William Hubbs | |
2017-09-06 | add retry option to supervise-daemon | William Hubbs | |
The --retry option for supervise-daemon defines how the supervisor will attempt to stop the child process it is monitoring. It is defined when the supervisor is started since stopping the supervisor just sends a signal to the active supervisor. This fixes #160. | |||
2017-08-23 | move get_pid function to a shared file | William Hubbs | |
2017-05-12 | supervise-daemon: save start time and respawn count before dropping privs | William Hubbs | |
2017-05-11 | fix from_time_t function | William Hubbs | |
2017-05-11 | Move time_t conversions to rc-misc.c so they can be shared | William Hubbs | |
2017-05-11 | supervise-daemon: save start time and respawn count | William Hubbs | |
This will allow rc-status to display an uptime and restart count for supervised processes. | |||
2017-05-11 | supervise-daemon: fix our status when we give up on the child process | William Hubbs | |
2017-05-10 | supervise-daemon:create multiple options from --respawn-limit | William Hubbs | |
This creates --respawn-delay, --respawn-max and --respawn-period. It was suggested that it would be easier to follow if the options were separated. This is for #126. | |||
2017-05-09 | supervise-daemon: add a --respawn-limit option | William Hubbs | |
Allow limiting the number of times supervise-daemon will attempt to respawn a daemon once it has died to prevent infinite respawning. Also, set a reasonable default limit (10 times in a 5 second period). This is for issue #126. | |||
2017-04-29 | supervise-daemon: mark all open file descriptors FD_CLOEXEC | William Hubbs | |
2017-04-29 | supervise-daemon:remove the controlling tty in the supervisor | William Hubbs | |
2017-04-29 | supervise-daemon: fix access to tty_fd and devnull_fd | William Hubbs | |
Both the child and supervisor need access to these file descriptors. | |||
2017-04-29 | supervise-daemon: mark the service started when the supervisor is active | William Hubbs | |
2017-01-04 | Clean up warnings that can use the _unused macro | Benda Xu | |
X-Gentoo-Bug: 604666 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=604666 | |||
2017-01-04 | Indentation fixes | Benda Xu | |
X-Gentoo-Bug: 604666 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=604666 | |||
2016-05-23 | supervise-daemon: log the exit code or signal when a child process dies | William Hubbs | |
2016-05-13 | supervise-daemon: add pam service file | William Hubbs | |
2016-04-27 | add daemon supervisor | William Hubbs | |
The supervise-daemon process is meant to be a lightweight supervisor which can monitor and restart a daemon if it crashes. |