aboutsummaryrefslogtreecommitdiffstats
path: root/main/rp-pppoe/rp-pppoe.initd
blob: 18611999652abdbf65ff85bbdecf4556e3435a9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/sbin/runscript

depend() {
	need net
}

start() {
	ebegin "Starting PPPOE Server"
	test -x /usr/sbin/pppoe-server -a -f /etc/ppp/pppoe-server-options || exit 0
	start-stop-daemon --start --exec /usr/sbin/pppoe-server -- ${PPPOE_PARAMS}
	eend $?
}

stop () {
	ebegin "Stopping PPPOE Server"
	start-stop-daemon --stop --exec /usr/sbin/pppoe-server
	eend $?
}

restart () {
        ebegin "Restarting PPPOE Server"
        start-stop-daemon --stop --exec /usr/sbin/pppoe-server
        sleep 1
        start-stop-daemon --start --exec /usr/sbin/pppoe-server -- ${PPPOE_PARAMS}
        echo "."
}