Don't use long options to start-stop-daemon as they may be disabled in the busybox configuration

This commit is contained in:
Hamish Moffatt
2008-03-18 00:20:24 +00:00
parent d97812e3a5
commit aa73d17530
6 changed files with 20 additions and 20 deletions

View File

@@ -8,15 +8,15 @@ test -f $DAEMON || exit 0
case "$1" in
start)
start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON -- -D &
start-stop-daemon -S -p $PIDFILE -x $DAEMON -- -D &
;;
stop)
start-stop-daemon --stop --pidfile $PIDFILE --exec $DAEMON
start-stop-daemon -K -p $PIDFILE -x $DAEMON
;;
restart|force-reload)
start-stop-daemon --stop --pidfile $PIDFILE --exec $DAEMON
start-stop-daemon -K -p $PIDFILE -x $DAEMON
sleep 1
start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON
start-stop-daemon -S -p $PIDFILE -x $DAEMON
;;
*)
echo "Usage: /etc/init.d/l2tdp {start|stop|restart|force-reload}"