[Pkg-sysvinit-devel] Bug#521562: please parse LSB headers
Jordi Pujol
jordipujolp at gmail.com
Fri Jan 28 09:21:46 UTC 2011
A Dijous 27 Gener 2011 18:17:08, Joey Hess va escriure:
> Jordi Pujol wrote:
> > now the default behaviour for update-rc.d with option "defaults" is
> > parse the LSB Headers, therefore we can leave blank the options for
> > dh_installlinit and it will pass the option "defaults" to update-rc.d,
> > but when update-rc.d works in legacy mode, dh_installinit should write
> > the start and stop values, obtained from parsing the LSB headers.
>
> If the LSB Default-Start and Default-Stop headers can be trusted,
> why does "update-rc.d defaults" not already parse and use those in
> legacy mode?
>
> I don't like adding yet another parser for this, and it seems it should
> be up to update-rc.d to decide whether to use those headers or not. My
> suspicion is that, since they are unused, they probably are less correct
> than the default "defaults" behavior in most cases, and that by using
> this unverified infomation source, debhelper would break a lot of
> packages. Can you prove otherwise?
Yes, you are right, if update-rc.d could parse the headers for defaults in any
mode, then the change in dh_installinit is not needed.
Also, thinking about my modification, it has a problem because is wrong to
suppose a sequence number to start and stop, must be computed regarding the
sequences for other services, or in the same manner as insserv does, when
installing.
>
> It does seem that by making most systems use dependency based boot,
> while leaving a fraction in legacy mode, we now have a situation where
> the legacy mode is going to tend to bit-rot, since it is a) hard to
> maintain and b) won't get wide use and testing. But I don't see this
> change to debhelper signifiantly ammeloriating that problem, and it
> could easily make it much worse.
Yes, modifying update-rc.d to allways parse defaults will easy development of
packages, maybe the answer is declare obsolete the legacy mode or use insserv
to compute the sequences even in legacy mode.
Jordi Pujol
Live never ending Tale
GNU/Linux Live forever!
http://livenet.selfip.com
More information about the Pkg-sysvinit-devel
mailing list