add try-restart to fix autorestarting on SUSE systems

This commit is contained in:
Michael Calmer 2016-12-20 18:17:51 +01:00 committed by Pablo Suárez Hernández
parent 2c3a39760a
commit de6ec05ec0
4 changed files with 8 additions and 8 deletions

View file

@ -139,7 +139,7 @@ case "$1" in
RETVAL=$?
fi
;;
condrestart)
condrestart|try-restart)
[ -f $LOCKFILE ] && restart || :
;;
reload)
@ -147,7 +147,7 @@ case "$1" in
RETVAL=1
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload}"
exit 1
;;
esac

View file

@ -122,7 +122,7 @@ case "$1" in
RETVAL=$?
fi
;;
condrestart)
condrestart|try-restart)
[ -f $LOCKFILE ] && restart || :
;;
reload)
@ -130,7 +130,7 @@ case "$1" in
RETVAL=1
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload}"
exit 1
;;
esac

View file

@ -129,7 +129,7 @@ case "$1" in
RETVAL=$?
fi
;;
condrestart)
condrestart|try-restart)
[ -f $LOCKFILE ] && restart || :
;;
reload)
@ -137,7 +137,7 @@ case "$1" in
RETVAL=1
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload}"
exit 1
;;
esac

View file

@ -123,7 +123,7 @@ case "$1" in
RETVAL=$?
fi
;;
condrestart)
condrestart|try-restart)
[ -f $LOCKFILE ] && restart || :
;;
reload)
@ -131,7 +131,7 @@ case "$1" in
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload}"
exit 1
;;
esac