Bug#36621: nscd: nscd should not be started if the machine is configured as NIS server
Package: nscd
Version: 2.1.1-1
cd should not be started if the machine is configured as NIS server
-- System Information
Debian Release: potato
Kernel Version: Linux alpha 2.2.6-ac1 #1 Tue Apr 20 23:59:15 CEST 1999 alpha unknown
Versions of the packages nscd depends on:
ii libc6.1 2.1.1-1 GNU C Library: Shared libraries and timezone
--- Begin /etc/init.d/nscd (modified conffile)
#!/bin/sh
#
#
echo "NO nscd on NIS Server"
exit 0
test -x /usr/sbin/nscd || exit 0
test -f /etc/nscd.conf || exit 0
case $(uname -r) in
[2-9].[2-9].*)
# this is okay
;;
*)
#this is not
exit 0
;;
esac
case "$1" in
start)
secure=""
echo -n "Starting Name Service Cache Daemon: "
echo "nscd."; start-stop-daemon --start --quiet --exec /usr/sbin/nscd -- $secure
;;
stop)
echo -n "Stopping Name Service Cache Daemon: "
/usr/sbin/nscd -K
echo nscd.
;;
force-reload)
$0 stop
$0 start
;;
restart)
$0 force-reload
;;
*)
echo "Usage: /etc/init.d/nscd {start|stop|force-reload|restart}"
;;
esac
exit 0
--- End /etc/init.d/nscd
Reply to: