From f2bde1bcfa1d2916c33829a70b3c818095c01dab 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 --- init.d/guacd.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.d/guacd.in b/init.d/guacd.in index 989b92a..e1a8e7d 100644 --- 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 $? -- 1.7.10.4