summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipa-install/ipa-client-install
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-05-13 16:29:01 -0400
committerRob Crittenden <rcritten@redhat.com>2008-05-14 09:57:09 -0400
commit92d7f9c28a9730a497fe2f9b57ba7548e06d2413 (patch)
tree1d74ea2a1d554d18986258e0084412c36a1f04b7 /ipa-client/ipa-install/ipa-client-install
parent99141e3a041c7223fa867900050de8d149cc3734 (diff)
downloadfreeipa-92d7f9c28a9730a497fe2f9b57ba7548e06d2413.tar.gz
freeipa-92d7f9c28a9730a497fe2f9b57ba7548e06d2413.tar.xz
freeipa-92d7f9c28a9730a497fe2f9b57ba7548e06d2413.zip
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
Diffstat (limited to 'ipa-client/ipa-install/ipa-client-install')
-rw-r--r--ipa-client/ipa-install/ipa-client-install5
1 files changed, 5 insertions, 0 deletions
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."