X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=init.d%2F_start_stop;h=36a37e211d0649924a73debdafd3a3601bfb00ad;hb=eaaf66c7ab6e529345899e4cfa8d21f30aa93084;hp=cf20f399a1f606263476c9576736b2f92fce55fb;hpb=67f05d48953f680ff2cd7ec33ef2e89451cee719;p=cloudstore.git 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