2006-04-28 12:03:38 +00:00
|
|
|
#!/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
|
2006-06-06 15:34:50 +00:00
|
|
|
extra_commands="flush"
|
|
|
|
flush_cmd="${command} -I all"
|
2006-04-28 12:03:38 +00:00
|
|
|
|
|
|
|
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"
|