head	1.4;
access;
symbols;
locks; strict;
comment	@# @;


1.4
date	2007.10.02.07.51.42;	author bushman;	state dead;
branches;
next	1.3;

1.3
date	2006.06.06.15.34.50;	author ume;	state Exp;
branches;
next	1.2;

1.2
date	2006.06.06.12.55.58;	author ume;	state Exp;
branches;
next	1.1;

1.1
date	2006.04.28.12.03.34;	author ume;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Removing obsolete cached files after cached->nscd renaming.

Approved by:	re (kensmith), brooks (mentor)
@
text
@#!/bin/sh
#
# $FreeBSD: src/etc/rc.d/cached,v 1.3 2006/06/06 15:34:50 ume Exp $
#

# 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
extra_commands="flush"
flush_cmd="${command} -I all"

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"
@


1.3
log
@`flush' is appropriate than `reload'.

Requested by:	ceri
@
text
@d3 1
a3 1
# $FreeBSD$
@


1.2
log
@Add `reload' which invalidates the cache for every user.
@
text
@d24 2
a25 2
extra_commands="reload"
reload_cmd="${command} -I all"
@


1.1
log
@- 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
@
text
@d24 2
@

