freebsd-dev/etc/rc.d/cached
Hajimu UMEMOTO 06a99fe36f - Extend the nsswitch to support Services, Protocols and Rpc
databases.
- Make nsswitch support caching.

Submitted by:	Michael Bushkov <bushman__at__rsu.ru>
Sponsored by:	Google Summer of Code 2005
2006-04-28 12:03:38 +00:00

31 lines
438 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: cached
# REQUIRE: DAEMON
# BEFORE: LOGIN
#
# Add the following lines to /etc/rc.conf to enable cached:
#
# cached_enable="YES"
#
# See cached(8) for flags
#
. /etc/rc.subr
name=cached
rcvar=`set_rcvar`
command=/usr/sbin/cached
cached_enable=${cached_enable:-"NO"}
cached_pidfile=${cached_pidfile:-"/var/run/cached.pid"}
cached_flags=${cached_flags:-""}
load_rc_config $name
run_rc_command "$1"