1fe81f079b
A daemon which handles passwd, group and host lookups for running programs and caches the results for the next query. This package is intended to replace glibc nscd. Presently, glibc nscd is not installed by Buildroot. unscd depends on glibc because it relies on glibc function __nss_disable_nscd. nscd.conf is taken from glibc with unused configurations removed. Cc: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Doug Kehn <rdkehn@yahoo.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
25 lines
489 B
Bash
25 lines
489 B
Bash
#!/bin/sh
|
|
|
|
NAME="nscd"
|
|
DAEMON="/usr/sbin/${NAME}"
|
|
|
|
case "$1" in
|
|
start)
|
|
printf "Starting ${NAME}: "
|
|
start-stop-daemon -S -x ${DAEMON}
|
|
[ $? -eq 0 ] && echo "OK" || echo "FAIL"
|
|
;;
|
|
stop)
|
|
printf "Stopping ${NAME}: "
|
|
start-stop-daemon -K -x ${DAEMON}
|
|
[ $? -eq 0 ] && echo "OK" || echo "FAIL"
|
|
;;
|
|
restart|reload)
|
|
$0 stop
|
|
$0 start
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart|reload}"
|
|
exit 1
|
|
esac
|