Daemon init scripts and apt-get [was: Re: red worm amusement]
On Sun, Jul 22, 2001 at 03:27:10AM -0400, Steven Barker wrote:
> On Sat, Jul 21, 2001 at 11:59:17PM -0700, Mike Fedyk wrote:
> > On Sun, Jul 22, 2001 at 02:50:14AM -0400, Steven Barker wrote:
>
> > > I think that there should be a way to install a debian server packages
> > > without having the installation scripts start the server. This need not be
> > > default, but it should be possible.
>
> > But that doesn't change the default. If you do something like this,
> > you should add an option "apt-get --run install foo"
>
> Yes, that would make sense. Both --run and --no-run could be avalable as
> options with the default behavior determined by apt/dpkg configuration. As
> for what the default for apt/dpkg's config, that's for us to flame each
> other over... ;-)
>
Yes, make the default configurable if you have your debconf setting to
"medium" or "low" and default to "Don't start" otherwise.
I really don't want to have to type something more every time just to
keep the daemons from starting...
If you have -run and --no-run what happens when you don't specify
either?
> > Personally, I think there should either be a /etc/do-not-start/<package> dir that
> > packages' init scripts check for non-existance before starting, or a
> > commented entry in the config file that the init script checks for
> > non-existance before starting...
>
> Well, now we're getting into heavy policy stuff.... I think it would be hard
> enough to get all the daemon postinst scripts to work in run and no-run mode.
>
Actually, if we could get them all to source an sh script that
contains that logic, all changes to policy would be self-contained.
Mike
Reply to: