From ab6a6e27d88b44b8c3f07290ae753558705363ee Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Thu, 1 Aug 2013 14:47:52 +0200 Subject: Make CS.cfg edits with CA instance stopped This patch makes sure that all edits to CS.cfg configuration file are performed while pki-tomcatd service is stopped. Introduces a new contextmanager stopped_service for handling a general problem of performing a task that needs certain service being stopped. https://fedorahosted.org/freeipa/ticket/3804 --- install/restart_scripts/renew_ca_cert | 1 + 1 file changed, 1 insertion(+) (limited to 'install/restart_scripts') diff --git a/install/restart_scripts/renew_ca_cert b/install/restart_scripts/renew_ca_cert index 5768db3f7..ab394b970 100644 --- a/install/restart_scripts/renew_ca_cert +++ b/install/restart_scripts/renew_ca_cert @@ -83,6 +83,7 @@ except Exception, e: finally: shutil.rmtree(tmpdir) +# Done withing stopped_service context, CA restarted here update_cert_config(nickname, cert) if nickname == 'subsystemCert cert-pki-ca': -- cgit