[systemd-devel] Fast respawning jobs

Lennart Poettering lennart at poettering.net
Fri Jun 25 10:48:56 UTC 2021


On Fr, 25.06.21 09:32, Szymanski, Kai (Kai.Szymanski at Luerssen.de) wrote:

> Hi,

Please always mention the systemd version you are operating with. (And
distro would be good too).

> i have a job that is very fast respawning if there ist nothing todo. The Servicefile looks like this:
>
>
> [Unit]
> Description=job1
> StartLimitIntervalSec=100
> StartLimitBurst=5

With these two lines you declare that starting the unit shall fail
when attempted more than 5 times in 100s.

> Problem is that after several retries the job goes to failed state (but it exits after 1 Seconds with resultcode 0).

Raise the start limit?

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list