From 685bada14777fd69e6d47294c7040b98fd211514 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 12 Feb 2012 20:31:30 +0100 Subject: [PATCH] added restart --- init.d/_start_stop | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/init.d/_start_stop b/init.d/_start_stop index cf20f39..36a37e2 100755 --- a/init.d/_start_stop +++ b/init.d/_start_stop @@ -20,9 +20,14 @@ case $1 in fi ;; stop) - kill `cat /tmp/$NAME.pid` ;; + kill `cat /tmp/$NAME.pid` + ;; + restart) + $0 stop + $0 start + ;; *) - echo "usage: $0 {start|stop}" ;; + echo "usage: $0 {start|stop|restart}" ;; esac exit 0 -- 2.20.1