mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
PKI service restart after CA renewal failed
Fix both the service restart procedure and registration of old pki-cad well known service name. This patch was adapted from original patch of Jan Cholasta 178 to fix ticket 4092. https://fedorahosted.org/freeipa/ticket/4092
This commit is contained in:
committed by
Martin Kosek
parent
4a64a1f18b
commit
911f5e9eb7
@@ -1283,7 +1283,7 @@ class CAInstance(service.Service):
|
||||
"""
|
||||
caconfig = dogtag.install_constants.CS_CFG_PATH
|
||||
|
||||
with stopped_service('pki_tomcatd',
|
||||
with stopped_service(self.dogtag_constants.SERVICE_NAME,
|
||||
instance_name=self.dogtag_constants.PKI_INSTANCE_NAME):
|
||||
|
||||
# Enable file publishing, disable LDAP
|
||||
@@ -1723,7 +1723,7 @@ def update_cert_config(nickname, cert, dogtag_constants=None):
|
||||
'subsystemCert cert-pki-ca': 'ca.subsystem.cert',
|
||||
'Server-Cert cert-pki-ca': 'ca.sslserver.cert'}
|
||||
|
||||
with stopped_service('pki_tomcatd',
|
||||
with stopped_service(dogtag_constants.SERVICE_NAME,
|
||||
instance_name=dogtag_constants.PKI_INSTANCE_NAME):
|
||||
|
||||
installutils.set_directive(dogtag.configured_constants().CS_CFG_PATH,
|
||||
|
||||
Reference in New Issue
Block a user