From a246567e6bce8df97c3203abd8a5bb855796bdb1 Mon Sep 17 00:00:00 2001 From: Dimitris Aragiorgis Date: Wed, 3 Oct 2012 13:16:07 +0300 Subject: [PATCH] Use start-stop-daemon istead of start_daemon Signed-off-by: Dimitris Aragiorgis --- debian/nfdhcpd.init | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/nfdhcpd.init b/debian/nfdhcpd.init index ba793a2..8df06a4 100644 --- a/debian/nfdhcpd.init +++ b/debian/nfdhcpd.init @@ -58,7 +58,7 @@ STARTTIME=1 # Time to wait for the server to start, in seconds # when it actually did) LOGFILE=$LOGDIR/$NAME.log # Server logfile -#DAEMONUSER=nfdhcp # Users to run the daemons as. If this value +#DAEMON_USER=nfdhcp # Users to run the daemons as. If this value # is set start-stop-daemon will chuid the server # Include defaults if available @@ -107,7 +107,8 @@ start_server() { mkdir /var/run/$NAME || return 1 chown nobody:nogroup /var/run/$NAME || return 1 fi - start_daemon -p $PIDFILE $DAEMON $DAEMON_OPTS + start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE \ + --exec $DAEMON -- $DAEMON_OPTS errcode=$? return $errcode } -- 1.7.10.4