4 DAEMON
="/usr/sbin/${NAME}"
5 PID_F
="/var/run/nscd/${NAME}.pid"
9 printf "Starting ${NAME}: "
10 start-stop-daemon
-S -p ${PID_F} -x ${DAEMON}
11 [ $?
-eq 0 ] && echo "OK" ||
echo "FAIL"
14 printf "Stopping ${NAME}: "
15 start-stop-daemon
-K -p ${PID_F}
16 [ $?
-eq 0 ] && echo "OK" ||
echo "FAIL"
23 echo "Usage: $0 {start|stop|restart|reload}"