1 # This file is currently taken verbatim from the version distributed
2 # with GNU glibc's nscd with unused configurations removed
6 # An example Name Service Cache config file. This file is needed by nscd.
12 # threads <initial #threads to use>
13 # max-threads <maximum #threads to use>
14 # server-user <user to run server as instead of root>
15 # server-user is ignored if nscd is started with -S parameters
16 # stat-user (ignored; any user can stat)
17 # reload-count (ignored; unscd should never crash)
19 # restart-interval (ignored; unscd should never crash)x
21 # enable-cache <service> <yes|no>
22 # positive-time-to-live <service> <time in seconds>
23 # negative-time-to-live <service> <time in seconds>
24 # suggested-size <service> <prime number>
25 # check-files <service> <yes|no>
26 # persistent <service> (ignored)
27 # shared <service> (ignored)
28 # auto-propagate <service> (ignored)
30 # Currently supported cache names (services): passwd, group, hosts
34 # logfile /var/log/unscd.log
42 # restart-interval 3600
44 enable-cache passwd yes
45 positive-time-to-live passwd 600
46 negative-time-to-live passwd 20
47 suggested-size passwd 211
48 check-files passwd yes
51 auto-propagate passwd yes
53 enable-cache group yes
54 positive-time-to-live group 3600
55 negative-time-to-live group 60
56 suggested-size group 211
60 auto-propagate group yes
62 # hosts caching is broken with gethostby* calls, hence is now disabled per default.
64 positive-time-to-live hosts 3600
65 negative-time-to-live hosts 20
66 suggested-size hosts 211
71 # unscd does not support services caching