blob: b1f8d293183e9fc1456a8d2098dd7695fded80f8 [file] [log] [blame]
#!/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 /run/pptpd.pid
result=$?
killall -SIGTERM pptpctrl &>/dev/null
eend $result
}