]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r255521, r255526, r255707:
authortrociny <trociny@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 3 Oct 2013 18:50:09 +0000 (18:50 +0000)
committertrociny <trociny@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 3 Oct 2013 18:50:09 +0000 (18:50 +0000)
commitd4260a6c309c4f379ce2d0825750570d68b69a4a
tree4cfcd1ad62d7dce5b921708a0ce28a99354b2686
parentacf989348dc00526e3dccb84838f2835e5dc74a2
MFC r255521, r255526, r255707:

r255521 (jmg):

add support for writing the pid of the daemon program to a pid file so
that daemon can be used w/ rc.subr and ports can use the additional
functionality, such as keeping the ldap daemon up and running, and have
the proper program to signal to exit.

PR: bin/181341
Submitted by: feld

r255526 (joel):

mdoc: remove EOL whitespace.

r255707:

1. Properly clean pid files in the case of the error.
2. Write the supervisor pid before the restart loop, so we don't
   uselessly rewrite it after every child restart.
3. Remove duplicate ppfh and pfh initialization.

git-svn-id: svn://svn.freebsd.org/base/stable/8@256026 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/daemon/daemon.8
usr.sbin/daemon/daemon.c