blob: 54d6bcca3b2e118c282f2e1ef7cfba3d5b00a089 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: nscd
# REQUIRE: DAEMON
# BEFORE: LOGIN
#
# Add the following lines to /etc/rc.conf to enable cached:
#
# nscd_enable="YES"
#
# See nscd(8) for flags
#
. /etc/rc.subr
name=nscd
rcvar=`set_rcvar`
command=/usr/sbin/nscd
extra_commands="flush"
flush_cmd="${command} -I all"
nscd_enable=${nscd_enable:-"NO"}
nscd_pidfile=${nscd_pidfile:-"/var/run/nscd.pid"}
nscd_flags=${nscd_flags:-""}
load_rc_config $name
run_rc_command "$1"
|