glibc/nscd/nscd.init
Ulrich Drepper ac72fbb190 Update.
1998-08-31  Ulrich Drepper  <drepper@cygnus.com>

	* io/sys/stat.h (ALLPERMS): Fix type (S_ISTXT -> S_ISVTX).
	Reported by Rob.Hagopian@vu.union.edu [PR libc/763].

	* nscd/nscd.init: Make it work in RedHat systems.
	Patch by Christian Gafton.

1998-08-29  Philip Blundell  <philb@gnu.org>

	* catgets/Makefile: Don't try to run test programs when
	cross-compiling.

1998-08-31  Ulrich Drepper  <drepper@cygnus.com>

	* signal/signal.h: Include bits/sigthread.h only if __USE_POSIX.
	Reported by Zack Weinberg.

1998-08-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* sysdeps/unix/sysv/linux/Dist: Add umount.S and umount2.S.
	* elf/Makefile (distribute): Remove ldd.sh.in.

1998-08-31 11:46  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* sysdeps/unix/sysv/linux/dl-origin.h (get_origin): Remove unused
	variable.
1998-08-31 11:11:15 +00:00

56 lines
1.1 KiB
Bash

#!/bin/sh
#
# nscd: Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 80
# description: This is a daemon which handles passwd and group lookups \
# for running programs and cache the results for the next \
# query. You should start this daemon only if you use \
# slow Services like NIS or NIS+
# processname: nscd
# config: /etc/nscd.conf
#
# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0
# Source function library.
. /etc/rc.d/init.d/functions
# See how we were called.
case "$1" in
start)
secure=""
# for table in passwd group
# do
# if egrep '^'$table':.*nisplus' /etc/nsswitch.conf >/dev/null
# then
# /usr/lib/nscd_nischeck $table ||
# secure="$secure -S $table,yes"
# fi
# done
echo -n "Starting Name Switch Cache Daemon: "
daemon nscd $secure
echo
touch /var/lock/subsys/nscd
;;
stop)
echo -n "Stopping Name Switch Cache Daemon: "
/usr/sbin/nscd -K
rm -f /var/lock/subsys/nscd
echo nscd
;;
status)
status nscd
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|status|restart}"
;;
esac
exit 0