Make sure we start the NSCD daemon.

It makes a huge difference on clients, if we cache lookups
This commit is contained in:
Simo Sorce 2008-04-08 14:58:52 -04:00
parent f24842fd9d
commit c45d58cc3f

View File

@ -321,6 +321,21 @@ def main():
ipaclient.ntpconf.config_ntp(ntp_server, fstore)
print "NTP enabled"
#Activate Name Server Caching Daemon
try:
run(["/sbin/service", "nscd", "restart"])
except:
print "Failed to start the NSCD daemon"
print "Caching of users/groups will not be available"
pass
try:
run(["/sbin/chkconfig", "nscd", "on"])
except:
print "Failed to configure automatic startup of the NSCD daemon"
print "Caching of users/groups will not be available after reboot"
pass
print "Client configuration complete."
return 0