From 15cc47f2afab3ce029a5dd39d7b9e07da676930d Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 27 Feb 2011 21:01:16 -0800 Subject: [PATCH] Adding support for LSB try-restart --- guacd/init.d/guacd.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 $?