From 92d7f9c28a9730a497fe2f9b57ba7548e06d2413 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Tue, 13 May 2008 16:29:01 -0400 Subject: Make sure all services are stopped during uninstall. We were just shutting down the KDC if it had been started prior to IPA installation. We need to stop it in all cases. And we should restart nscd as it may have made an LDAP connection. 440322 --- ipa-client/ipa-install/ipa-client-install | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ipa-client/ipa-install/ipa-client-install') diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index bb180fc6d..5355d5685 100644 --- a/ipa-client/ipa-install/ipa-client-install +++ b/ipa-client/ipa-install/ipa-client-install @@ -91,6 +91,11 @@ def uninstall(options): print "Failed to remove krb5/ldap configuration. " +str(e) sys.exit(1) + try: + run(["/sbin/service", "nscd", "restart"]) + except: + print "Failed to restart start the NSCD daemon" + if not options.unattended: print "The original nsswitch.conf configuration has been restored." print "You may need to restart services or reboot the machine." -- cgit