aboutsummaryrefslogtreecommitdiff
path: root/init.d/nscd.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/nscd.in')
-rw-r--r--init.d/nscd.in22
1 files changed, 22 insertions, 0 deletions
diff --git a/init.d/nscd.in b/init.d/nscd.in
new file mode 100644
index 00000000..e70ba4a3
--- /dev/null
+++ b/init.d/nscd.in
@@ -0,0 +1,22 @@
+#!@PREFIX@/sbin/runscript
+# Copyright 2007-2008 Roy Marples <roy@marples.name>
+# All rights reserved. Released under the 2-clause BSD license.
+
+command=/usr/sbin/nscd
+command_args="${nscd_args}"
+pidfile=/var/run/nscd.pid
+name="Name Service Cache Daemon"
+
+extra_started_commands="flush"
+
+depend() {
+ need localmount
+ use net dns ldap ypbind
+ after bootmisc
+}
+
+flush() {
+ ebegin "Flushing ${name}"
+ nscd -I all >/dev/null
+ eend $?
+}