summaryrefslogtreecommitdiffstats
path: root/testing/pptpd/pptpd.initd
diff options
context:
space:
mode:
authorDanilo Godec <danilo.godec@agenda.si>2011-08-10 14:30:14 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2011-08-10 12:46:50 +0000
commitff73676914146bced1e9c9468d8ad91255125016 (patch)
tree20cf7475be3f2ae1b00f78c017f6549f60559330 /testing/pptpd/pptpd.initd
parentd5cc91e23d61e81e56b2e3c91c89551d02260dd7 (diff)
downloadaports-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.initd20
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
+}