From 40ac8158358e4ebe83208d41ff17164a58c8dc80 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 5 Feb 2018 15:27:44 +0100 Subject: [PATCH] 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 Reviewed-By: Tibor Dudlak --- ipaserver/install/kra.py | 5 +++++ 1 file changed, 5 insertions(+) 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():