3 # xl2tpd This shell script takes care of starting and stopping l2tpd.
6 # description: Layer 2 Tunnelling Protocol Daemon (RFC 2661)
8 # processname: /usr/sbin/xl2tpd
9 # config: /etc/xl2tpd/xl2tpd.conf
10 # pidfile: /var/run/xl2tpd.pid
14 # Required-Start: $local_fs $network $syslog
15 # Required-Stop: $local_fs $network $syslog
17 # Default-Stop: 0 1 2 3 4 5 6
18 # Short-Description: start|stop|status|restart|try-restart|reload|force-reload xl2tpd server
19 # Description: control xl2tpd server
25 # Source function library.
26 .
/etc
/rc.d
/init.d
/functions
28 # Source networking configuration.
29 .
/etc
/sysconfig
/network
31 if [ ${NETWORKING} = "no" ]
36 [ -x /usr
/sbin
/$SERVICE ] ||
exit 0
41 echo -n "Starting $SERVICE: "
42 if [ ! -d /var
/run
/xl2tpd
]
49 if [ $RETVAL -eq 0 ];then
50 touch /var
/lock
/subsys
/$SERVICE
58 echo -n "Stopping $SERVICE: "
61 if [ $RETVAL -eq 0 ]; then
62 rm -f /var
/run
/xl2tpd
/$SERVICE
63 rm -f /var
/lock
/subsys
/$SERVICE
74 # See how we were called.
90 [ -f /var
/lock
/subsys
/$SERVICE ] && restart ||
:
93 echo "Usage: $SERVICE {start|stop|status|restart|reload|condrestart}"