Sorry, I forgot to attach the patch.
----- Original Message -----
From: "Tomas Babej" <tba...@redhat.com>
To: freeipa-devel@redhat.com
Sent: Tuesday, August 7, 2012 5:58:32 PM
Subject: [PATCH] Handle SSSD restart crash more gently.
Hi,
In ipa-client-install, failure of restart of sssd service no longer
causes the crash of the install process. Adds a warning message to
the root logger instead.
https://fedorahosted.org/freeipa/ticket/2827
Tomas
From 03a6b3f9504b8e9130fc4526f053efbe4b3bddf1 Mon Sep 17 00:00:00 2001
From: Tomas Babej <tba...@redhat.com>
Date: Tue, 7 Aug 2012 11:30:23 -0400
Subject: [PATCH] Handle SSSD restart crash more gently.
In ipa-client-install, failure of restart of sssd service no longer
causes the crash of the install process. Adds a warning message to
the root logger instead.
https://fedorahosted.org/freeipa/ticket/2827
---
ipa-client/ipa-install/ipa-client-install | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index 081ae7f281a04bae29c4a1cd27c125d879732e23..ff44969ad791846c20c66f516beeab67560851f4 100755
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -436,7 +436,10 @@ def uninstall(options, env):
"Original configuration file was restored, restarting SSSD " +
"service.")
sssd = ipaservices.service('sssd')
- sssd.restart()
+ try:
+ sssd.restart()
+ except:
+ root_logger.warning("SSSD service restart was unsuccessful.")
if not options.unattended:
root_logger.info(
--
1.7.11.2
_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel