projects
/
guacd.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding support for LSB try-restart
[guacd.git]
/
init.d
/
guacd.in
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
;;
esac
+ return $retval
}
}
@@
-121,8
+122,11
@@
case "$1" in
start|stop|status|restart|force-reload)
$1
;;
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 $?
exit 2
esac
exit $?