mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add support for systemd environments and use it to support Fedora 16
https://fedorahosted.org/freeipa/ticket/1192
This commit is contained in:
committed by
Martin Kosek
parent
f098b213eb
commit
25d5d7ed93
@@ -375,7 +375,7 @@ class CADSInstance(service.Service):
|
||||
def restart_instance(self):
|
||||
try:
|
||||
ipaservices.knownservices.dirsrv.restart(self.serverid)
|
||||
if not dsinstance.is_ds_running():
|
||||
if not dsinstance.is_ds_running(self.serverid):
|
||||
logging.critical("Failed to restart the directory server. See the installation log for details.")
|
||||
sys.exit(1)
|
||||
except Exception:
|
||||
@@ -693,7 +693,7 @@ class CAInstance(service.Service):
|
||||
|
||||
def __restart_instance(self):
|
||||
try:
|
||||
self.restart()
|
||||
self.restart(PKI_INSTANCE_NAME)
|
||||
installutils.wait_for_open_ports('localhost', 9180, 300)
|
||||
except Exception:
|
||||
# TODO: roll back here?
|
||||
|
Reference in New Issue
Block a user