[Guidelines Change] Change to the Packaging Guidelines

Bill Nottingham notting at redhat.com
Tue Aug 7 17:38:58 UTC 2012


Lennart Poettering (mzerqung at 0pointer.de) said: 
> On Tue, 07.08.12 13:36, Tom Callaway (tcallawa at redhat.com) wrote:
> 
> > On 08/07/2012 01:29 PM, Lennart Poettering wrote:
> > > For services which should not be restarted on upgrade (D-Bus, ...) we
> > > should recommend this:
> > > 
> > > %postun
> > > %{systemd_postun} 
> > > 
> > > and for services which should be restarted on upgrade, we should
> > > recommend this: 
> > > 
> > > %postun
> > > %{systemd_postun_with_restart} apache-httpd.service 
> > > 
> > > And nobody should use systemctl enable in the spec snippets
> > > anymore. That should be encoded in the preset policy (see other mail I
> > > just sent).
> > 
> > Why would we ever not want to do a try-restart on an upgrade? This is
> > the current Fedora default.
> 
> Many services don't support being restarted. For example D-Bus and various
> storage daemons.

It's even in the SysV guidelines that automatic condrestart may not be
appropriate for all services.

Bill


More information about the devel mailing list