diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-04-12 11:13:45 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-04-12 11:13:45 +0000 |
commit | 94d63c21cf19a17db3b7ad9834ddddba519173d6 (patch) | |
tree | 0a4776d01d6a8056a467682eed8a950281e3e2b3 /etc/init.d | |
parent | fixed init (diff) |
init script restart fix
Diffstat (limited to 'etc/init.d')
-rw-r--r-- | etc/init.d/anytun | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/etc/init.d/anytun b/etc/init.d/anytun index c064fc8..a4c2644 100644 --- a/etc/init.d/anytun +++ b/etc/init.d/anytun @@ -1,15 +1,4 @@ #! /bin/sh -# -# skeleton example file to build /etc/init.d/ scripts. -# This file should be used to construct scripts for /etc/init.d. -# -# Written by Miquel van Smoorenburg <miquels@cistron.nl>. -# Modified for Debian -# by Ian Murdock <imurdock@gnu.ai.mit.edu>. -# -# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl -# - PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/anytun ANYTUNCONFIG=/usr/bin/anytun-config @@ -186,15 +175,15 @@ case "$1" in echo . ;; restart) + SCRPIT=$0 shift - /etc/init.d/anytun stop - sleep 1 - /etc/init.d/anytun start + $SCRIPT stop $* + sleep 1 + $SCRIPT start $* ;; *) N=/etc/init.d/$NAME - # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 - echo "Usage: $N {start|stop|restart|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 exit 1 ;; esac |