blob: 949c49e82abcaca193de6df5131ec5415013f2b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 $?
}
|