git: daemon(8): Add -P, -r, -u options from FreeBSD
John Marino
marino at crater.dragonflybsd.org
Sun Feb 9 11:09:06 PST 2014
commit ae071d8dadb0509212ac1489ff7c7ed9c6faba0e
Author: John Marino <draco at marino.st>
Date: Sun Feb 9 18:47:52 2014 +0100
daemon(8): Add -P, -r, -u options from FreeBSD
This is a full sync with FreeBSD. The DragonFly daemon hasn't been
significantly updated in years. The sync brings in:
option -P supervisor pidfile
This writes the pid of the daemon process in the specified file.
It gets removed automatically similarly to the child pidfile
option -u user
It executes the command using the credentials the the specified
user, and it requires the superuser to invoke it.
option -r restart
This acts like a watchdog and restarts a program that terminates
The update requires an update to libutil in order to use the same
pidfile handling that FreeBSD uses.
Summary of changes:
usr.sbin/daemon/Makefile | 6 +-
usr.sbin/daemon/daemon.8 | 107 +++++++++++++++++++---
usr.sbin/daemon/daemon.c | 224 ++++++++++++++++++++++++++++++++++++++++-------
3 files changed, 292 insertions(+), 45 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ae071d8dadb0509212ac1489ff7c7ed9c6faba0e
--
DragonFly BSD source repository
More information about the Commits
mailing list