mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 08:21:05 -06:00
Make sure we start the NSCD daemon.
It makes a huge difference on clients, if we cache lookups
This commit is contained in:
parent
f24842fd9d
commit
c45d58cc3f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user