mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
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,7 +165,13 @@ 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user