mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
Don't use long options to start-stop-daemon as they may be disabled in the busybox configuration
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user