diff options
author | Danilo Godec <danilo.godec@agenda.si> | 2011-08-10 14:30:14 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-10 12:46:50 +0000 |
commit | ff73676914146bced1e9c9468d8ad91255125016 (patch) | |
tree | 20cf7475be3f2ae1b00f78c017f6549f60559330 /testing/pptpd/pptpd.initd | |
parent | d5cc91e23d61e81e56b2e3c91c89551d02260dd7 (diff) | |
download | aports-ff73676914146bced1e9c9468d8ad91255125016.tar.bz2 aports-ff73676914146bced1e9c9468d8ad91255125016.tar.xz |
testing/pptpd: new aport
pptpd is a linux PPTP server
Diffstat (limited to 'testing/pptpd/pptpd.initd')
-rw-r--r-- | testing/pptpd/pptpd.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/pptpd/pptpd.initd b/testing/pptpd/pptpd.initd new file mode 100644 index 000000000..36af3f25f --- /dev/null +++ b/testing/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 +} |