Re: Init scripts as conffiles
On Tue, 15 Feb 2011 14:06:20 -0800
Don Armstrong <firstname.lastname@example.org> wrote:
> On Tue, 15 Feb 2011, Tony Houghton wrote:
> > It wouldn't be quite so bad if packages called update-rc.d disable
> > on their init scripts when removed so that init doesn't read the
> > disused scripts, but AFAICT from the Policy Manual (sec 22.214.171.124)
> > that isn't standard behaviour.
> The standard behavior is to exit 0 in the init script if the package
> is no longer installed; that's a fairly reasonable thing to do.
Yes (not just reasonable, but quite important if redundant init scripts
don't get cleaned up and you don't want error messages from them), but
init has to waste time loading and interpreting the scripts.
> > How about I file a wishlist bug for dpkg and apt for an option
> > similar to purge but which only purges files which haven't been
> > altered from the package's default?
> I've personally never had a use case for such an option myself; either
> you want the package installed, you want it removed for now, but may
> reinstall it later, or you never want to reinstall it again. [And you
> were looking for --force-confmiss, btw.]
Well, isn't this enhanced purge ideal for the second case?