added restart
[cloudstore.git] / init.d / _start_stop
index cf20f39..36a37e2 100755 (executable)
@@ -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