nscd revision 171795
1158115Sume#!/bin/sh 2158115Sume# 3158115Sume# $FreeBSD: head/etc/rc.d/nscd 171795 2007-08-09 13:06:12Z bushman $ 4158115Sume# 5158115Sume 6171795Sbushman# PROVIDE: nscd 7158115Sume# REQUIRE: DAEMON 8158115Sume# BEFORE: LOGIN 9158115Sume 10158115Sume# 11158115Sume# Add the following lines to /etc/rc.conf to enable cached: 12158115Sume# 13171795Sbushman# nscd_enable="YES" 14158115Sume# 15171795Sbushman# See nscd(8) for flags 16158115Sume# 17158115Sume 18158115Sume. /etc/rc.subr 19158115Sume 20171795Sbushmanname=nscd 21158115Sumercvar=`set_rcvar` 22158115Sume 23171795Sbushmancommand=/usr/sbin/nscd 24159348Sumeextra_commands="flush" 25159348Sumeflush_cmd="${command} -I all" 26158115Sume 27171795Sbushmannscd_enable=${nscd_enable:-"NO"} 28171795Sbushmannscd_pidfile=${nscd_pidfile:-"/var/run/nscd.pid"} 29171795Sbushmannscd_flags=${nscd_flags:-""} 30158115Sume 31158115Sumeload_rc_config $name 32158115Sumerun_rc_command "$1" 33