[systemd-devel] Fwd: Stopping a service at a specific time or after a specific duration

Andrei Borzenkov arvidjaar at gmail.com
Thu Apr 21 08:42:49 UTC 2016


On Thu, Apr 21, 2016 at 11:32 AM, Reindl Harald <h.reindl at thelounge.net> wrote:
>
>
> Am 20.04.2016 um 17:29 schrieb Jamie Kitson:
>>>
>>>   For stopping after a duration you can use RuntimeMaxSec=, introduced in
>>>   v229.
>>
>>
>> Thanks. The man page says:
>>
>>> If this is used and the service has been active for longer than the
>>> specified
>>> time it is terminated and put into a failure state
>
>
> and i call that a design bug - why does it go into failure state?
>

If you interpret RunTimeMax as "safety measure against run away
process" it sounds logical. In this case if service had to be killed
something went wrong indeed.


More information about the systemd-devel mailing list