projects
/
guacd.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
74b78d4
)
Adding support for LSB try-restart
author
Michael Jumper <zhangmaike@users.sourceforge.net>
Mon, 28 Feb 2011 05:01:16 +0000
(21:01 -0800)
committer
Michael Jumper <zhangmaike@users.sourceforge.net>
Mon, 28 Feb 2011 05:01:16 +0000
(21:01 -0800)
init.d/guacd.in
patch
|
blob
|
history
diff --git
a/init.d/guacd.in
b/init.d/guacd.in
index
989b92a
..
e1a8e7d
100644
(file)
--- a/
init.d/guacd.in
+++ b/
init.d/guacd.in
@@
-114,6
+114,7
@@
status() {
;;
esac
+ return $retval
}
@@
-121,8
+122,11
@@
case "$1" in
start|stop|status|restart|force-reload)
$1
;;
+ try-restart)
+ status && restart
+ ;;
*)
- echo "Usage: $0 {start|stop|status|restart|force-reload}"
+ echo "Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
exit 2
esac
exit $?