@@ -3,6 +3,7 @@ DAEMON=@BINDIR@/dscand
NAME=dscand
DESC="dscan daemon"
ID="controller"
+PIDFILE=/var/run/dscand.pid
test -f $DAEMON || exit 0
@@ -11,12 +12,12 @@ set -e
case "$1" in
start)
echo -n "starting $DESC: $NAME... "
- start-stop-daemon -S -n $NAME -a $DAEMON -- --daemon --id="$ID"
+ start-stop-daemon -S -m -p $PIDFLE -a $DAEMON -- --daemon --id="$ID"
echo "done."
;;
stop)
echo -n "stopping $DESC: $NAME... "
- start-stop-daemon -K -n $NAME
+ start-stop-daemon -K -p $PIDFILE
echo "done."
;;
restart)
From: Jacob Kjaergaard <jacob.kjaergaard@prevas.dk> --- src/dscand.sh.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)