diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-07-30 19:12:59 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-07-30 19:12:59 -0500 |
commit | 5d02c08eee85ccca39337e5bd986114970cca663 (patch) | |
tree | 5a898e23a804d771db4109ec9416520baf57647b /testing/libc6/nscd.initd | |
parent | fa51d376ff1d4a3a36047db79bee598b99324fce (diff) | |
download | aports-5d02c08eee85ccca39337e5bd986114970cca663.tar.bz2 aports-5d02c08eee85ccca39337e5bd986114970cca663.tar.xz |
testing/libc6: new aport. (presently disabled)
needs some work (mainly segfaulting on installing the package due to some bug)
Diffstat (limited to 'testing/libc6/nscd.initd')
-rw-r--r-- | testing/libc6/nscd.initd | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/libc6/nscd.initd b/testing/libc6/nscd.initd new file mode 100644 index 0000000000..949c49e82a --- /dev/null +++ b/testing/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 $? +} |