Bug#76868: PROPOSED] invoke-rc.d interface to invoke initscripts
On Fri, Feb 23, 2001 at 11:29:12AM -0300, Henrique M Holschuh wrote:
> On Fri, 23 Feb 2001, Julian Gilbey wrote:
> > This has now been seconded twice; it should have its status changed to
> > "accepted" and I guess that the sysvinit and file-rc packages should
> > have bugs against them to include the necessary scripts. Perhaps they
>
> The file-rc scripts are not written yet, so I didn't change the status. I'll
> be able to get them up to shape soon, cleaning up the fetchmail package has
> taken quite a lot of my debian time lately...
Fine! Well done for the effort! You've done some great work on that
package!
> > should both Provide: invoke-rc so that packages using it can depend on
> > invoke-rc? Or should packages have some sort of conditional in the
> > /etc/init.d? I prefer the former.
>
> Well, packages need to (pre-)?depends only on the new sysvinit package
> implementing invoke-rc.d, as file-rc will also depend on that package. The
> new sysvinit package would conflicts: with the file-rc package not providing
> invoke-rc.d.
OK, sounds good. Although the pre-depends I am not so happy about,
although I guess it's almost inevitable. The only alternative is to
have each preinst script writing "if command -v invoke-rc.d; then ...;
else ...; fi", which is a bit yucky. But it may be better than
pre-depends. We will ask on -devel when it's ready.
Julian
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London
Debian GNU/Linux Developer, see http://people.debian.org/~jdg
Donate free food to the world's hungry: see http://www.thehungersite.com/
Reply to: