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

Bug#208569: Processed: this is an update-rc.d bug, really



On Mon, 29 Dec 2003 17:24:11, Thom May wrote:
> * Miquel van Smoorenburg (miquels@cistron.net) wrote :
> > It's not a bug, it's a feature. It works exactly as documented. If your
> > package installed the links with the wrong sequence number, it's the
> > responsibility of the package to detect and fix this in the postinst
> > of the new version.
> > 
> > This is admittedly not trivial. But it's how it works.
> > 
> Um, eww. Oh well. It'd be nice if in the future you could tell update-rc.d
> to do it for you - something like:
> update-rc.d -u name <new-seq> <old-seq> and only have update-rc.d do it if
> the old number matched?

I'm thinking of adding something like that to update-rc.d, for example
a "-l" flag (list) that shows the current settings for a script, e.g.
update-rc.d -l nis would output

	nis start 19 2 3 4 5 . stop 19 0 1 6 .

(why that syntax? That's actually the command line syntax). With that
in place you can check for the "wrong" config and fix it.

There are already bugs open against sysvinit requesting something like that.
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=179210

Mike.



Reply to: