From: Michael Jumper Date: Mon, 28 Feb 2011 05:01:16 +0000 (-0800) Subject: Adding support for LSB try-restart X-Git-Url: http://git.alex.org.uk?hp=74b78d43b3094b8263acf5d2a4cd4c7ccd7c2576 Adding support for LSB try-restart --- 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 $?