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:
Berthold Cogel 2016-07-28 17:52:35 +02:00 committed by Michael Friedrich
parent 231fd8d38b
commit 47726d7701
1 changed files with 7 additions and 1 deletions

View File

@ -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
;;