projects
/
cloudstore.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b209db6
)
added restart
author
Dobrica Pavlinusic
<dpavlin@rsync1.maxxo.com>
Sun, 12 Feb 2012 19:31:30 +0000
(20:31 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rsync1.maxxo.com>
Sun, 12 Feb 2012 19:31:30 +0000
(20:31 +0100)
init.d/_start_stop
patch
|
blob
|
history
diff --git
a/init.d/_start_stop
b/init.d/_start_stop
index
cf20f39
..
36a37e2
100755
(executable)
--- 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