summaryrefslogtreecommitdiff
path: root/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-init
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gentoo/net-dialup/accel-pptp/files/pptpd-init')
-rwxr-xr-xcontrib/gentoo/net-dialup/accel-pptp/files/pptpd-init21
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-init b/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-init
new file mode 100755
index 00000000..c0537206
--- /dev/null
+++ b/contrib/gentoo/net-dialup/accel-pptp/files/pptpd-init
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting pptpd"
+ modprobe pptp
+ 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 --oknodo --exec /usr/sbin/pptpctrl
+ result=$(( $result + $? ))
+ eend $result
+}