mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
add try-restart to fix autorestarting on SUSE systems
This commit is contained in:
parent
2c3a39760a
commit
de6ec05ec0
4 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue