From 43419d27a334214568486a4f6caaf19ebf245cbb Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 16 Sep 2014 11:21:12 +0000 Subject: main/pptpd: moved from testing --- main/pptpd/pptpd.initd | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 main/pptpd/pptpd.initd (limited to 'main/pptpd/pptpd.initd') 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 +} -- cgit v1.2.3