diff options
author | trociny <trociny@FreeBSD.org> | 2012-02-19 10:23:51 +0000 |
---|---|---|
committer | trociny <trociny@FreeBSD.org> | 2012-02-19 10:23:51 +0000 |
commit | 03503d2c1ce95da32a8d84e8865164a2880f1dba (patch) | |
tree | 386f36276396af6e54542e886cacf202a3440a79 /usr.sbin/daemon/daemon.8 | |
parent | 15a9e8816230fd94e949ae7c2b2d89774c12c511 (diff) | |
download | FreeBSD-src-03503d2c1ce95da32a8d84e8865164a2880f1dba.zip FreeBSD-src-03503d2c1ce95da32a8d84e8865164a2880f1dba.tar.gz |
If the supervising process receives SIGTERM, forward it to the spawned
process. Normally it will cause the child to exit followed by the
termination of the supervisor after removing the pidfile.
This looks like desirable behavior, because termination of a
supervisor usually supposes termination of its charge. Also it will
fix the issue with stale pid files after reboot due to init kills a
supervisor before its child exits.
MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/daemon/daemon.8')
-rw-r--r-- | usr.sbin/daemon/daemon.8 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/daemon/daemon.8 b/usr.sbin/daemon/daemon.8 index a8c32f0..b9cf97e 100644 --- a/usr.sbin/daemon/daemon.8 +++ b/usr.sbin/daemon/daemon.8 @@ -71,6 +71,12 @@ owner is the user who runs the regardless of whether the .Fl u option is used or not. +If the monitoring +.Nm +receives software termination signal (SIGTERM) it forwards it to the +spawned process. +Normally it will cause the child to exit followed by the termination +of the supervising process after removing the pidfile. .It Fl u Ar user Login name of the user to execute the program under. Requires adequate superuser privileges. |