server upgrade: do not start BIND if it was not running before the upgrade

https://fedorahosted.org/freeipa/ticket/6206

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Petr Spacek
2016-08-11 15:10:04 +02:00
committed by Martin Basti
parent f2fe357219
commit d461f42f95

View File

@@ -1732,7 +1732,8 @@ def upgrade_configuration():
root_logger.info('Changes to named.conf have been made, restart named')
bind = bindinstance.BindInstance(fstore)
try:
bind.restart()
if bind.is_running():
bind.restart()
except ipautil.CalledProcessError as e:
root_logger.error("Failed to restart %s: %s", bind.service_name, e)