767dce8cee
l2tp is no longer being developed, and xl2tpd is forked from l2tpd and is maintained by Xelerance Corporation. [Peter: remove invalid pppd dependency] Signed-off-by: Martin Banky <Martin.Banky@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
28 lines
526 B
Bash
Executable File
28 lines
526 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
|
DAEMON=/usr/sbin/xl2tpd
|
|
PIDFILE=/var/run/xl2tpd.pid
|
|
|
|
test -f $DAEMON || exit 0
|
|
|
|
case "$1" in
|
|
start)
|
|
start-stop-daemon -S -p $PIDFILE -x $DAEMON -- -D &
|
|
;;
|
|
stop)
|
|
start-stop-daemon -K -p $PIDFILE -x $DAEMON
|
|
;;
|
|
restart|force-reload)
|
|
start-stop-daemon -K -p $PIDFILE -x $DAEMON
|
|
sleep 1
|
|
start-stop-daemon -S -p $PIDFILE -x $DAEMON
|
|
;;
|
|
*)
|
|
echo "Usage: /etc/init.d/xl2tdp {start|stop|restart|force-reload}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|