summaryrefslogtreecommitdiffstats
path: root/ipaplatform
diff options
context:
space:
mode:
Diffstat (limited to 'ipaplatform')
-rw-r--r--ipaplatform/redhat/services.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/ipaplatform/redhat/services.py b/ipaplatform/redhat/services.py
index d6fa080ad..565bf1fde 100644
--- a/ipaplatform/redhat/services.py
+++ b/ipaplatform/redhat/services.py
@@ -153,6 +153,20 @@ class RedHatDirectoryService(RedHatService):
super(RedHatDirectoryService, self).restart(instance_name,
capture_output=capture_output, wait=wait)
+ def wait_for_open_ports(self, instance_name=""):
+ if instance_name.endswith('.service'):
+ instance_name = instance_name[:-8]
+ if instance_name.startswith('dirsrv@'):
+ instance_name = instance_name[7:]
+
+ if instance_name:
+
+ ipautil.wait_for_open_socket(
+ paths.SLAPD_INSTANCE_SOCKET_TEMPLATE % instance_name,
+ self.api.env.startup_timeout)
+ else:
+ super(RedHatDirectoryService, self).wait_for_open_ports()
+
class RedHatIPAService(RedHatService):
# Enforce restart of IPA services when we do enable it