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

Re: upgrading openldapd --> slapd



Brian May <bam@debian.org> wrote:

> Yes, /etc/init.d/openldapd checks that /usr/sbin/slapd exists, but as
> the slapd package provides this same file, the check is useless in
> this case. However, I feel that because openldapd has been removed,
> then /etc/init.d/openldapd should be a NOP and return immediately.

That's the problem with our current init.d package status test.
Unfortunately, the existence of files is never going to be sufficient
in deducing the status of a package as it may have been completed replaced
by another package.  I guess what we really need is a way of querying the
package database from an init.d script, or have dpkg rename configuration
files of removed packages.

I had exactly the same problem in the
nfs-server -> {nfs-user-server,nfs-kernel-server} transition.
-- 
Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



Reply to: