diff options
author | Jamie Lenehan <lenehan@twibble.org> | 2007-06-12 23:59:01 +0000 |
---|---|---|
committer | Jamie Lenehan <lenehan@twibble.org> | 2007-06-12 23:59:01 +0000 |
commit | 7fc972d40dc286150feebe1f101ccf3d842b4e32 (patch) | |
tree | d6edfa7270549063fd5f9ba77f7d29164d2ef4c5 /packages/poptop/files/pptpd.init | |
parent | 9f43275b770da93119a616b5ec9722f32e4b69b6 (diff) |
poptop 1.3.4: Add 1.3.4 with some changes:
* Mark config files as such
* Add an init script
* Make bcrelay and the wtmp plugin available via seperate packages
* Make the -doc package available.
Diffstat (limited to 'packages/poptop/files/pptpd.init')
-rwxr-xr-x | packages/poptop/files/pptpd.init | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/packages/poptop/files/pptpd.init b/packages/poptop/files/pptpd.init new file mode 100755 index 0000000000..27786cd0c2 --- /dev/null +++ b/packages/poptop/files/pptpd.init @@ -0,0 +1,37 @@ +#! /bin/sh + +test -f /usr/sbin/pptpd || exit 0 +test -f /etc/default/pptpd && . /etc/default/pptpd + +case $1 in + start) + echo -n "Starting PPTP server: pptpd" + start-stop-daemon --start --quiet --pidfile /var/run/pptpd.pid \ + --exec /usr/sbin/pptpd + echo "." + ;; + stop) + echo -n "Stopping PPTP server: pptpd" + start-stop-daemon --stop --quiet --pidfile /var/run/pptpd.pid \ + --exec /usr/sbin/pptpd + echo "." + ;; + status) + pid=$(pidof pptpd) + if [ -n "$pid" ] ; then + echo "Running with pid $pid" + else + echo "Not running" + fi + ;; + restart|force-reload) + $0 stop + $0 start + ;; + *) + echo "Usage: /etc/init.d/pptpd {start|stop|restart|force-reload}" + exit 1 + ;; +esac + +exit 0 |