summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/adtrustinstance.py
diff options
context:
space:
mode:
authorTomas Krizek <tkrizek@redhat.com>2016-10-26 14:17:02 +0200
committerMartin Basti <mbasti@redhat.com>2016-11-07 11:34:03 +0100
commite05bdeb6cf4505ef84e485b95b37aabba625160b (patch)
tree537dc92e9395b707c7a8c94508436486bd14adce /ipaserver/install/adtrustinstance.py
parente8aa2627c7a3dcb0b0745e656ea58ccbbccd38fb (diff)
downloadfreeipa-e05bdeb6cf4505ef84e485b95b37aabba625160b.tar.gz
freeipa-e05bdeb6cf4505ef84e485b95b37aabba625160b.tar.xz
freeipa-e05bdeb6cf4505ef84e485b95b37aabba625160b.zip
install: add restart_dirsrv for directory server restarts
* Create a utility function to restart a directory server and reconnect the api.Backend.ldap2 connection. * Use restart_dirsrv instead of knownservices.dirsrv.restart to ensure api.Backend.ldap2 is reconnected. https://fedorahosted.org/freeipa/ticket/6461 Reviewed-By: Martin Basti <mbasti@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipaserver/install/adtrustinstance.py')
-rw-r--r--ipaserver/install/adtrustinstance.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/install/adtrustinstance.py b/ipaserver/install/adtrustinstance.py
index 1dfcf96f7..486e43e83 100644
--- a/ipaserver/install/adtrustinstance.py
+++ b/ipaserver/install/adtrustinstance.py
@@ -721,7 +721,7 @@ class ADTRUSTInstance(service.Service):
def __restart_dirsrv(self):
try:
- services.knownservices.dirsrv.restart()
+ installutils.restart_dirsrv()
except Exception:
pass