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
This commit is contained in:
Tomas Babej
2012-08-07 11:30:23 -04:00
committed by Martin Kosek
parent 690211adb5
commit 53967f21bd

View File

@@ -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(