diff --git a/guacd/init.d/guacd.in b/guacd/init.d/guacd.in index 989b92ac..e1a8e7d6 100644 --- a/guacd/init.d/guacd.in +++ b/guacd/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 $?