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

Re: Bug#225465: debian-policy: packages must give choice to not start at boot, via debconf



On 29-Dec-03, 22:07 (CST), Will Lowe <harpo@thebackrow.net> wrote: 
> > Each package that puts a file in /etc/init.d must in its debconf area,
> > call [a new debconf element[?]] that will ask the user's wishes as to if
> > this package is to be started at boot or not.
> 
> This needs to be a question with a priority of "low".  

It shouldn't be a question at all. The vast majority of people who
install a daemon want it running at startup. Those who don't should
be accommodated in a standard way, but it needs to meet the following
requirements

1. /etc/init.d/package {start,stop,etc.} *always* work.

2. Default to on with no debconf question.

3. Ideally, interface to change from "auto" to "manual" is an
update-rc.d command, so that it is both consistent and interfaces
properly to invoke-rc.d(8), which how we keep package maintainer scripts
from starting undesired daemons on upgrades.

4. Changing from auto->manual does not lose the runlevel info, which is
a problem with the current technique - after I rm the SNNpackage links,
I have to look in the packages postinst to restore them properly.

None of the above is terribly hard (except possibly getting invoke-rc.d
to respond correctly, I've not looked at that code), and should be
accomplished without requiring modifications to any packages except
those supplying update-rc.d.

Steve

-- 
Steve Greenland
    The irony is that Bill Gates claims to be making a stable operating
    system and Linus Torvalds claims to be trying to take over the
    world.       -- seen on the net



Reply to: