ruby: bump version to 2.4.1
[buildroot-gz.git] / package / unscd / S46unscd
blob6a51eec1301e80e396f85f7014cf0c553113ceb6
1 #!/bin/sh
3 NAME="nscd"
4 DAEMON="/usr/sbin/${NAME}"
5 PID_F="/var/run/nscd/${NAME}.pid"
7 case "$1" in
8 start)
9 printf "Starting ${NAME}: "
10 start-stop-daemon -S -p ${PID_F} -x ${DAEMON}
11 [ $? -eq 0 ] && echo "OK" || echo "FAIL"
13 stop)
14 printf "Stopping ${NAME}: "
15 start-stop-daemon -K -p ${PID_F}
16 [ $? -eq 0 ] && echo "OK" || echo "FAIL"
18 restart|reload)
19 $0 stop
20 $0 start
23 echo "Usage: $0 {start|stop|restart|reload}"
24 exit 1
25 esac