From: Faiyaz Ahmed Date: Tue, 12 Feb 2008 16:42:15 +0000 (+0000) Subject: fixed restart X-Git-Tag: vsys-0.7-3~3 X-Git-Url: http://git.onelab.eu/?p=vsys.git;a=commitdiff_plain;h=8e8e13b87b5d592621be0a15a19b5ea0a1fad0b5 fixed restart --- diff --git a/vsys-initscript b/vsys-initscript index 8ae12a1..58eb450 100755 --- a/vsys-initscript +++ b/vsys-initscript @@ -43,11 +43,12 @@ case "$1" in [ $RETVAL -eq 0 ] && rm -f ${lockfile} ${pidfile} ;; restart) - stop - start + $0 stop + $0 start + RETVAL=$? ;; *) - echo $"Usage: $0 {start|stop}" + echo $"Usage: $0 {start|stop|restart}" exit 1 ;; esac