From 94d63c21cf19a17db3b7ad9834ddddba519173d6 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Sat, 12 Apr 2008 11:13:45 +0000 Subject: init script restart fix --- etc/init.d/anytun | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'etc') 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 . -# Modified for Debian -# by Ian Murdock . -# -# 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 -- cgit v1.2.3