aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/libc6/nscd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/libc6/nscd.initd')
-rw-r--r--unmaintained/libc6/nscd.initd18
1 files changed, 18 insertions, 0 deletions
diff --git a/unmaintained/libc6/nscd.initd b/unmaintained/libc6/nscd.initd
new file mode 100644
index 0000000000..949c49e82a
--- /dev/null
+++ b/unmaintained/libc6/nscd.initd
@@ -0,0 +1,18 @@
+#!/sbin/runscript
+
+DAEMON=/usr/sbin/nscd
+
+start() {
+ ebegin "Starting nscd"
+ # remove stale files
+ rm -f /var/db/nscd/* /var/run/nscd/* 2>/dev/null
+ start-stop-daemon --start --exec $DAEMON
+ eend $?
+}
+
+stop () {
+ ebegin "Stopping nscd"
+ start-stop-daemon --stop --quiet \
+ --pidfile=/var/run/nscd/nscd.pid
+ eend $?
+}