mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Make CA/KRA fail when they don't start
Since all the services throw exceptions when we're unable to start/restart them, CA/KRA should not be an exception to it. https://pagure.io/freeipa/issue/6766 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
parent
05984f171b
commit
1a7a1f955e
@ -156,22 +156,10 @@ class DogtagInstance(service.Service):
|
||||
ignore_errors=True)
|
||||
|
||||
def restart_instance(self):
|
||||
try:
|
||||
self.restart('pki-tomcat')
|
||||
except Exception:
|
||||
self.log.debug(traceback.format_exc())
|
||||
self.log.critical(
|
||||
"Failed to restart the Dogtag instance."
|
||||
"See the installation log for details.")
|
||||
self.restart('pki-tomcat')
|
||||
|
||||
def start_instance(self):
|
||||
try:
|
||||
self.start('pki-tomcat')
|
||||
except Exception:
|
||||
self.log.debug(traceback.format_exc())
|
||||
self.log.critical(
|
||||
"Failed to restart the Dogtag instance."
|
||||
"See the installation log for details.")
|
||||
self.start('pki-tomcat')
|
||||
|
||||
def stop_instance(self):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user