blob: d56e1671e8b62cf63017fbb0d031888812f5530b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/sbin/runscript
depend() {
need net
}
start() {
ebegin "Starting xl2tpd"
start-stop-daemon --start --quiet --exec /usr/sbin/xl2tpd -- ${XL2TPD_OPTS}
eend $?
}
stop() {
ebegin "Stopping xl2tpd"
start-stop-daemon --stop --quiet --pidfile /var/run/xl2tpd.pid
result=$?
start-stop-daemon --stop --quiet --exec /usr/sbin/xl2tpd-control
result=$(( $result + $? ))
eend $result
}
|