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

Re: DebConf-ing Apache Modules



	I think in this case it would have to be something within the
postinst checking to see if it were the last module and thus needed to
restart the server... I don't think the intent was for DebConf to be able
to make this assumption but rather to facilitate a mechanism for the 
postinst scripts to be able to talk to one another so they don't all have
to duplicate the same step of restarting...

	Respectfully,
	Jeremy T. Bouse

Joey Hess was said to been seen saying:
> I don't see how a shared template can prevent apache from being
> restarted N times. It can cut down the number of times the question is
> asked to once per upgrade, perhaps, but each postinst will still need to
> independantly Do The Right (idempotent, etc) Thing, and a postinst has
> no way of telling if it is the last of the N postinsts, and should thus
> restart apache, or not.
> 
> Likewise, while there is a way to make a shared question is asked
> whenever a new package that uses it is installed and/or removed (there's
> an example of this in the debconf docs), I can't think of a good way to
> make a shared question be asked exactly once when any number of packages
> that use it are upgraded together. It's really the same problem as
> restarting apache; even though debconf can be used to tell you what
> packages that share the question are installed, there is no way to know
> what packages in that set are currently being upgraded, or if this is
> the first or last package that is being upgraded.
> 
> I'm not sure why you think the question needs to be asked once per
> upgrade anyway; forcing debconf to re-ask things is often a mistake that
> can be avoided if you look at things from the right angle. But it's not
> always, of course.
> 

-- 
,-----------------------------------------------------------------------------,
|Jeremy T. Bouse, CCNA - UnderGrid Network Services, LLC -  www.UnderGrid.net |
|       Public PGP/GPG key available through http://wwwkeys.us.pgp.net        |
|     If received unsigned (without requesting as such) DO NOT trust it!      |
| Jeremy.Bouse@UnderGrid.net   -   NIC Whois: JB5713   -   jbouse@Debian.org  |
`-----------------------------------------------------------------------------'

Attachment: pgpXcffslRkNC.pgp
Description: PGP signature


Reply to: