mirror of https://github.com/Icinga/icinga2.git
Init script: condrestart should only restart a running service
fixes #11650 Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
This commit is contained in:
parent
231fd8d38b
commit
47726d7701
|
@ -165,11 +165,17 @@ case "$1" in
|
|||
status)
|
||||
status
|
||||
;;
|
||||
restart|condrestart)
|
||||
restart)
|
||||
checkconfig restart fail
|
||||
stop nofail
|
||||
start
|
||||
;;
|
||||
condrestart)
|
||||
status > /dev/null 2>&1 || exit 0
|
||||
checkconfig restart fail
|
||||
stop nofail
|
||||
start
|
||||
;;
|
||||
reload)
|
||||
reload
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue