Re: RFC: initscript policy proposal
- To: firstname.lastname@example.org, email@example.com
- Subject: Re: RFC: initscript policy proposal
- From: Julian Gilbey <J.D.Gilbey@qmw.ac.uk>
- Date: Thu, 2 Nov 2000 05:24:29 +0000
- Message-id: <20001102052429.B4570@polya>
- In-reply-to: <20001031101012.B23576@molehole.dhis.org>; from firstname.lastname@example.org on Tue, Oct 31, 2000 at 10:10:13AM -0600
- References: <20001031121256.A17787@godzillah> <20001031101012.B23576@molehole.dhis.org>
On Tue, Oct 31, 2000 at 10:10:13AM -0600, Steve Greenland wrote:
> Generally very nice (haven't read the actual scripts yet...). I definitely
> I've one question/concern/objection, though. In your diff of 220.127.116.11, you
> > + By default, `invoke-rc.d' will pass any action requests (start, stop,
> > + reload, restart...) to the /etc/init.d script, filtering out requests
> > + to start a service out of its intended runlevels as defined by
> > + `update-rc.d' and the system administrator. Also, requests to restart a
> > + service out of its intended runlevels are changed to a stop request.
> The last sentence causes a problem in the following (contrived?)
> 1. Daemon foo is not configured to run at current runlevel.
> 2. I, the sysadmin, have started foo by hand.
> 3. I do a apt-get upgrade, which includes a new versin of foo. Because
> of "restart converted to stop", foo is stopped.
> I propose that instead of "restarts converted to stops" we just go with
> "restarts ignored". I realize that this would cause the new version of
> foo to be ignored, but that may be less surprising than having foo go
> away completely,
I think the fundamental problem here is that we do not have a generic
way of testing whether a service is running or not. If we did, then
restart should mean "restart only if currently running", unless that
is what "maybe-restart" is meant to mean....
Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
Debian GNU/Linux Developer, see http://www.debian.org/~jdg
Donate free food to the world's hungry: see http://www.thehungersite.com/