service restart question

Tom Lane tgl at redhat.com
Mon Jun 25 14:30:00 UTC 2012


Lennart Poettering <mzerqung at 0pointer.de> writes:
> On Mon, 25.06.12 16:57, Gary Kotton (gkotton at redhat.com) wrote:
>> My understanding is that if there is a entry in the "Service" section
>> "Restart=always", then we can rely on systemd to restart the service if
>> it dies.
>> 
>> Can someone please explain or clarify why this is not the default value?
>> I can understand that this should not be set if there is another
>> "watcher" process that can restart a failed service.

> Well, simply because we have no policy about it.

See also bug #832029 before being in too much of a hurry to decide that
this Must Be A Good Thing.  At minimum, it currently seems that we might
need per-service tuning of the restart timing parameters before being
sure that enabling restart is safe.  So while recommending that services
enable this after suitable testing *might* be a good idea, turning it on
by default seems like a horribly bad one.

			regards, tom lane


More information about the devel mailing list