kumquat-buildroot/package/l2tp/l2tpd

28 lines
523 B
Plaintext
Raw Normal View History

2007-02-16 19:11:48 +01:00
#!/bin/sh
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/sbin/l2tpd
PIDFILE=/var/run/l2tpd.pid
test -f $DAEMON || exit 0
case "$1" in
start)
start-stop-daemon -S -p $PIDFILE -x $DAEMON -- -D &
2007-02-16 19:11:48 +01:00
;;
stop)
start-stop-daemon -K -p $PIDFILE -x $DAEMON
2007-02-16 19:11:48 +01:00
;;
restart|force-reload)
start-stop-daemon -K -p $PIDFILE -x $DAEMON
2007-02-16 19:11:48 +01:00
sleep 1
start-stop-daemon -S -p $PIDFILE -x $DAEMON
2007-02-16 19:11:48 +01:00
;;
*)
echo "Usage: /etc/init.d/l2tdp {start|stop|restart|force-reload}"
exit 1
;;
esac
exit 0