summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/nscd
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2006-04-28 12:03:38 +0000
committerume <ume@FreeBSD.org>2006-04-28 12:03:38 +0000
commite14f1c3b3b31e7f6c28cef5acc87f4c7373d288c (patch)
treed796503361cc28eb3b9eaa593876abd826a2cf81 /etc/rc.d/nscd
parent4b38e5bbca25f143cbf615b8c7fe1f7873ba1e6c (diff)
downloadFreeBSD-src-e14f1c3b3b31e7f6c28cef5acc87f4c7373d288c.zip
FreeBSD-src-e14f1c3b3b31e7f6c28cef5acc87f4c7373d288c.tar.gz
- 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
Diffstat (limited to 'etc/rc.d/nscd')
-rw-r--r--etc/rc.d/nscd30
1 files changed, 30 insertions, 0 deletions
diff --git a/etc/rc.d/nscd b/etc/rc.d/nscd
new file mode 100644
index 0000000..0376b58
--- /dev/null
+++ b/etc/rc.d/nscd
@@ -0,0 +1,30 @@
+#!/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"
OpenPOWER on IntegriCloud