diff options
author | Tomas Babej <tbabej@redhat.com> | 2012-08-07 11:30:23 -0400 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-08-14 15:45:32 +0200 |
commit | 53967f21bd4c35dee2209d1d80b65deb2ad177d6 (patch) | |
tree | ed4f157e27bbe3959d120a69a47b46026dbbac29 | |
parent | 690211adb52647efb6bb55919dec980d3660016e (diff) | |
download | freeipa-53967f21bd4c35dee2209d1d80b65deb2ad177d6.tar.gz freeipa-53967f21bd4c35dee2209d1d80b65deb2ad177d6.tar.xz freeipa-53967f21bd4c35dee2209d1d80b65deb2ad177d6.zip |
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
-rwxr-xr-x | ipa-client/ipa-install/ipa-client-install | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index 3b4d14d48..2e65921e8 100755 --- a/ipa-client/ipa-install/ipa-client-install +++ b/ipa-client/ipa-install/ipa-client-install @@ -437,7 +437,10 @@ def uninstall(options, env): "Original configuration file was restored, restarting SSSD " + "service.") sssd = ipaservices.service('sssd') - sssd.restart() + try: + sssd.restart() + except CalledProcessError: + root_logger.warning("SSSD service restart was unsuccessful.") if not options.unattended: root_logger.info( |