Bug#229273: nscd cannot be purged when the daemon is stopped
Hi...
On Sun, 25 Jan 2004 05:47 am, GOTO Masanori wrote:
> I would like to delete the below line:
>
> stop)
> echo -n "Stopping Name Service Cache Daemon: nscd"
> /usr/sbin/nscd -K
> -> RETVAL=$?
> echo "."
> ;;
>
> Is it OK?
Well it certainly fixes this bug.
However I suppose the correct fix would be to check to see whether nscd is
running before attempting to stop it. If it turns out not to be running, then
just return success instantly. It is possible for the 'stop' operation to
fail for other reasons, and you might well want that to be reported to the
caller of the init.d script.
=)
Peter
Reply to: