aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pptpd/pptpd.initd
blob: 36af3f25fff0a4e6f853bc498a65af675bf375cd (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 pptpd"
	start-stop-daemon --start --quiet --exec /usr/sbin/pptpd -- ${PPTPD_OPTS}
	eend $?
}

stop() {
	ebegin "Stopping pptpd"
	start-stop-daemon --stop --quiet --pidfile /var/run/pptpd.pid
	result=$?
	start-stop-daemon --stop --quiet --exec /usr/sbin/pptpctrl
	result=$(( $result + $? ))
	eend $result
}