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:
1 parent
f2fe357219
commit
d461f42f95
1 file changed
+2
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user