aboutsummaryrefslogtreecommitdiffstats
path: root/main/eglibc/nscd.initd
blob: 7087dcf4c345465fe6179f6f3aa667fee3bb910f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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 $?
}