summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2018-02-05 15:27:44 +0100
committerChristian Heimes <cheimes@redhat.com>2018-02-08 16:58:13 +0100
commit40ac8158358e4ebe83208d41ff17164a58c8dc80 (patch)
tree0974dcdec2beb314cc82fcdcfb6f0ce950c0f0dd
parent939db89cacdd9450400093be33af891d17545c10 (diff)
downloadfreeipa-40ac8158358e4ebe83208d41ff17164a58c8dc80.tar.gz
freeipa-40ac8158358e4ebe83208d41ff17164a58c8dc80.tar.xz
freeipa-40ac8158358e4ebe83208d41ff17164a58c8dc80.zip
Restart named-pkcs11 after KRA installation
KRA installer restarts 389-DS, which disrupts named-pkcs11 bind-dyndb-ldap for a short while. Restart named-pkcs11 to fix DNS resolver. Fixes: https://pagure.io/freeipa/issue/5813 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Tibor Dudlak <tdudlak@redhat.com>
-rw-r--r--ipaserver/install/kra.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipaserver/install/kra.py b/ipaserver/install/kra.py
index 77fd11b9e..1e3ab60c4 100644
--- a/ipaserver/install/kra.py
+++ b/ipaserver/install/kra.py
@@ -129,6 +129,11 @@ def install(api, replica_config, options):
# Restart apache for new proxy config file
services.knownservices.httpd.restart(capture_output=True)
+ # Restarted named-pkcs11 to restore bind-dyndb-ldap operation, see
+ # https://pagure.io/freeipa/issue/5813
+ named = services.knownservices.named # alias for named-pkcs11
+ if named.is_running():
+ named.restart(capture_output=True)
def uninstall():