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 # config: /etc/nscd.conf
15 [ -f /etc/nscd.conf ] || exit 0
16 [ -x /usr/sbin/nscd ] || exit 0
18 # Source function library.
19 . /etc/rc.d/init.d/functions
22 if [ -f /etc/sysconfig/nscd ]; then
26 # See how we were called.
29 msg_sarting "Name Switch Cache Daemon"
31 touch /var/lock/subsys/nscd
34 msg_stopping "Name Switch Cache Daemon"
37 rm -f /var/lock/subsys/nscd
49 msg_Usage "$0 {start|stop|status|restart|reload}"