freebsd-dev/etc/rc.d/nscd
Michael Bushkov db1bdf2b02 - Renaming repocopied cached to nscd
Approved by:	re (kensmith), brooks (mentor)
2007-08-09 13:06:12 +00:00

33 lines
467 B
Bash

#!/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"