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 authored and Martin Basti committed 2016-08-16 14:33:17 +02:00
1 parent f2fe357219
commit d461f42f95
1 file changed
+2 -1
+2 -1
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)