[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#229273: nscd cannot be purged when the daemon is stopped



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)
> peterh@warpcore:~$ sudo /etc/init.d/nscd stop
> Stopping Name Service Cache Daemon: nscd.
> peterh@warpcore:~$ 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
> peterh@warpcore:~$

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



Reply to: