At Sat, 24 Jan 2004 11:46:26 +1100,
Peter Hawkins wrote:
> The nscd package cannot be purged if the nscd daemon is not running. This is 
> probably best explained by the command log below:
(snip)
> [EMAIL PROTECTED]:~$ sudo /etc/init.d/nscd stop
> Stopping Name Service Cache Daemon: nscd.
> [EMAIL PROTECTED]:~$ sudo dpkg --purge nscd
> (Reading database ... 146961 files and directories currently installed.)
> Removing nscd ...
> Stopping Name Service Cache Daemon: nscd.
> invoke-rc.d: initscript nscd, action "stop" failed.
> dpkg: error processing nscd (--purge):
>  subprocess pre-removal script returned error exit status 1
> Starting Name Service Cache Daemon: nscd.
> Errors were encountered while processing:
>  nscd
> [EMAIL PROTECTED]:~$

Exactly.  I wonder why /etc/init.d/nscd returns RETVAL variable which
is returned by nscd.  When stopping nscd, there is no need to return
such variable.

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?

Regards,
-- gotom


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to