mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-27 09:21:41 +02:00
19 lines
375 B
Plaintext
19 lines
375 B
Plaintext
#!/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 $?
|
|
}
|