[systemd-devel] Restart best practices

Lennart Poettering lennart at poettering.net
Fri Jun 6 04:56:12 PDT 2014


On Fri, 06.06.14 09:48, Jóhann B. Guðmundsson (johannbg at gmail.com) wrote:

> On 06/05/2014 05:00 PM, Lennart Poettering wrote:
> >I think it would make sense to recommend that packagers and upstream
> >packages adopt Restart=on-failure or Restart=on-abnormal (where the
> >former is not appropriate) for all long-running daemons. However, this
> >recommendation should be taken with a grain of salt, as for some
> >services it might be a bad choice to just tape over problems and
> >restarting it again on failure... Hence, this is really not something to
> >blindly apply to all services on the world, but just a recommendation
> >that individually should be considered.
> 
> We already have units in the wild upstream where the internet has
> effectively spread ignorance once again which contain
> "Restart=Always" when they should not so I would think it would be
> better send the signal to upstream not to set these settings et all
> but rather expected downstream distribution to set this based on
> their own policy so those downstream distribution can provide
> consistent end user expectation for their administrative user base.

It is actually our intention to unify distributions, and thus encourage
developers to ship unit files upstream that need no modification. I'd
thus enjoy if Debian and Fedora could adopt similar guidelines here.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list