]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/rc.d/cached
Pull in /etc/rc.conf.d/network so that ifconfig_<if> variables can be
[FreeBSD/FreeBSD.git] / etc / rc.d / cached
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: cached
7 # REQUIRE: DAEMON
8 # BEFORE: LOGIN
9
10 #
11 # Add the following lines to /etc/rc.conf to enable cached:
12 #
13 # cached_enable="YES"
14 #
15 # See cached(8) for flags
16 #
17
18 . /etc/rc.subr
19
20 name=cached
21 rcvar=`set_rcvar`
22
23 command=/usr/sbin/cached
24 extra_commands="flush"
25 flush_cmd="${command} -I all"
26
27 cached_enable=${cached_enable:-"NO"}
28 cached_pidfile=${cached_pidfile:-"/var/run/cached.pid"}
29 cached_flags=${cached_flags:-""}
30
31 load_rc_config $name
32 run_rc_command "$1"