summaryrefslogtreecommitdiff
path: root/package/l2tp/l2tpd
diff options
context:
space:
mode:
Diffstat (limited to 'package/l2tp/l2tpd')
-rwxr-xr-xpackage/l2tp/l2tpd8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/l2tp/l2tpd b/package/l2tp/l2tpd
index 0b51339f3..8bed72db3 100755
--- a/package/l2tp/l2tpd
+++ b/package/l2tp/l2tpd
@@ -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}"