[systemd-devel] Restart best practices

Reindl Harald h.reindl at thelounge.net
Fri Jun 6 02:57:20 PDT 2014


Am 06.06.2014 11:48, schrieb Jóhann B. Guðmundsson:
> 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

where do you see ignorance here?

if there is running a service which should always run the
only valid reason it's main process is stopped is a
"systemctop stop whatever.service"

for any long running service like web/mail/database servers
"Restart=always" is what i expect as admin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 246 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140606/7a76fd0f/attachment.sig>


More information about the systemd-devel mailing list