mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
committed by
Martin Basti
parent
f2fe357219
commit
d461f42f95
@@ -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