summaryrefslogtreecommitdiff
blob: 6bbf9d68143e304b77a0101c2769037bb92dd84c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/openrc-run

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 /run/pptpd.pid
	result=$?
	killall -SIGTERM pptpctrl &>/dev/null
	eend $result
}