Adding support for LSB try-restart

This commit is contained in:
Michael Jumper 2011-02-27 21:01:16 -08:00
parent bb4070925c
commit 15cc47f2af

View File

@ -114,6 +114,7 @@ status() {
;; ;;
esac esac
return $retval
} }
@ -121,8 +122,11 @@ case "$1" in
start|stop|status|restart|force-reload) start|stop|status|restart|force-reload)
$1 $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 exit 2
esac esac
exit $? exit $?