diff options
Diffstat (limited to 'main/pptpd/pptpd.initd')
-rw-r--r-- | main/pptpd/pptpd.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/pptpd/pptpd.initd b/main/pptpd/pptpd.initd new file mode 100644 index 0000000000..36af3f25ff --- /dev/null +++ b/main/pptpd/pptpd.initd @@ -0,0 +1,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 +} |