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)
|
||||||
status
|
status
|
||||||
;;
|
;;
|
||||||
restart|condrestart)
|
restart)
|
||||||
checkconfig restart fail
|
checkconfig restart fail
|
||||||
stop nofail
|
stop nofail
|
||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
|
condrestart)
|
||||||
|
status > /dev/null 2>&1 || exit 0
|
||||||
|
checkconfig restart fail
|
||||||
|
stop nofail
|
||||||
|
start
|
||||||
|
;;
|
||||||
reload)
|
reload)
|
||||||
reload
|
reload
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue