3 # $FreeBSD: src/etc/rc.d/nscd,v 1.7 2008/07/16 19:50:29 dougb Exp $
12 # Add the following lines to /etc/rc.conf to enable nscd:
16 # See nscd(8) for flags
24 command=/usr
/sbin
/nscd
25 extra_commands
="flush"
26 flush_cmd
="${command} -I all"
28 # usage: _nscd_set_option <option name> <default value>
31 local _optname _defoptval _nscd_opt_val _cached_opt_val
35 _nscd_opt_val
=$
(eval "echo \$nscd_${_optname}")
36 _cached_opt_val
=$
(eval "echo \$cached_${_optname}")
38 if [ -n "$_cached_opt_val" -a "$_nscd_opt_val" != "$_defoptval" ]; then
39 warn
"You should use nscd_${_optname} instead of" \
41 setvar
"nscd_${_optname}" "$_cached_opt_val"
43 setvar
"nscd_${_optname}" "${_nscd_opt_val:-$_defoptval}"
49 _nscd_set_option
"enable" "NO"
50 _nscd_set_option
"pidfile" "/var/run/nscd.pid"
51 _nscd_set_option
"flags" ""