diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-16 11:21:12 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-16 11:21:12 +0000 |
commit | 43419d27a334214568486a4f6caaf19ebf245cbb (patch) | |
tree | 9ff324b320e215ce8dbb8fca8a8499dcc9b3c93e /main/pptpd/pptpd.initd | |
parent | d3aa5f237ecaf9873444c5b3978af6d824b0a390 (diff) | |
download | aports-43419d27a334214568486a4f6caaf19ebf245cbb.tar.bz2 aports-43419d27a334214568486a4f6caaf19ebf245cbb.tar.xz |
main/pptpd: moved from testing
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 +} |