# Configuration for /etc/init.d/nscd (musl-nscd)
#
# musl-nscd answers passwd/group lookups through the NSS modules listed in
# /etc/nsswitch.conf (e.g. winbind, sss, ldap). See musl-nscd(8).
#
# Options:
#   -j <threads>          Total number of threads, including the one accepting
#                         connections. Without -j only ONE request is served at
#                         a time, so a single slow lookup (e.g. a directory
#                         server timing out) blocks every other process.
#   -C <seconds>          Enable the cache; entries stay valid this long.
#                         Changes in the directory (new group memberships,
#                         renamed users) can take this long to become visible.
#                         Only successful lookups are cached.
#   -n <entries>          Maximum entries per cache (passwd, group and
#                         initgroups each). Default 1000, which is too small
#                         for larger directories: entries get evicted before
#                         they are reused and every lookup goes to the backend.
#   -x <program:service>  Never answer requests from <program> through NSS
#                         <service>. May be repeated.
#   -X                    Disable the built-in rule "winbindd:winbind", which
#                         keeps Samba's winbindd from querying itself through
#                         nss_winbind (that deadlocks winbindd until its
#                         request timeout expires).
#
# Do not add -d or -p: nscd runs under supervise-daemon, which needs it in
# the foreground and tracks its PID itself. The init script refuses to start
# if either is present.
#
# Examples:
#
# Default (up to a few thousand users/groups):
NSCD_OPTS="-j 8 -C 300 -n 10000"
#
# Large directory (tens of thousands of users/groups), changes may lag 10 minutes:
#NSCD_OPTS="-j 16 -C 600 -n 50000"
#
# No caching, every lookup goes to the backend (changes visible immediately):
#NSCD_OPTS="-j 8"
