diff options
author | xeb <xeb@mail.ru> | 2009-06-17 00:56:34 +0400 |
---|---|---|
committer | xeb <xeb@mail.ru> | 2009-06-17 00:56:34 +0400 |
commit | df2441c834cf341d9b969dacc2dd8dac07cd588e (patch) | |
tree | ca0c7d8bade520ac35f5cd5c34dec54b136bd491 /gentoo/net-dialup/accel-pptp/files/pptpd-init | |
download | accel-ppp-df2441c834cf341d9b969dacc2dd8dac07cd588e.tar.gz accel-ppp-df2441c834cf341d9b969dacc2dd8dac07cd588e.zip |
initial import
Diffstat (limited to 'gentoo/net-dialup/accel-pptp/files/pptpd-init')
-rwxr-xr-x | gentoo/net-dialup/accel-pptp/files/pptpd-init | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gentoo/net-dialup/accel-pptp/files/pptpd-init b/gentoo/net-dialup/accel-pptp/files/pptpd-init new file mode 100755 index 0000000..c053720 --- /dev/null +++ b/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 +} |