diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-08-09 08:41:19 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-08-09 08:41:19 +0000 |
commit | 9d829ed05c295df608b4fc108eb1c628fd06fd39 (patch) | |
tree | c1b27cfe4498f8abef1a61325922906f3e6a32ff /packages/poptop/files/pptpd.init | |
parent | 1434b204e16e87b7f59f074f3036d5dcbcf0116f (diff) | |
parent | 6ccac10beeaaa02a86081bd6179fd57c208ad6b1 (diff) |
merge of '76e1e69496801009ea0aa69c84f76e858978ab99'
and 'db976a98427dd6a195e2cf167e225de2d0206aea'
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 |