3 # nscd: Starts the Name Switch Cache Daemon
6 # description: This is a daemon which handles passwd and group lookups
7 # for running programs and cache the results for the next
8 # query. You should start this daemon only if you use
9 # slow Services like NIS or NIS+
11 # Source function library.
12 .
/etc
/rc.d
/init.d
/functions
14 # See how we were called.
17 test -f /etc
/nscd.conf
-a -f /usr
/sbin
/nscd ||
exit 0
19 # for table in passwd group
21 # if egrep '^'$table':.*nisplus' /etc/nsswitch.conf >/dev/null
23 # /usr/lib/nscd_nischeck $table ||
24 # secure="$secure -S $table,yes"
27 echo -n "Starting Name Switch Cache Daemon: "
30 touch /var
/lock
/subsys
/nscd
33 test -f /usr
/sbin
/nscd ||
exit 0
34 echo -n "Stopping Name Switch Cache Daemon: "
36 rm -f /var
/lock
/subsys
/nscd
47 echo "Usage: /etc/rc.d/init.d/nscd.init {start|stop|status|restart}"