core: check start limit on condition checks too
authorLennart Poettering <lennart@poettering.net>
Mon, 18 Mar 2019 12:14:19 +0000 (13:14 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 18 Mar 2019 15:06:36 +0000 (16:06 +0100)
commit2de9b9793b91f492141f090dcc89445511e94bd4
tree914d54376b356b7fafffa1fa8fc1057b9f892ea0
parent5766aca8d2e52c9c27f5c0486cdaa049bb743371
core: check start limit on condition checks too

Let's add a safety precaution: if the start condition checks for a unit
are tested too often and fail each time, let's rate limit this too.

This should add extra safety in case people define .path, .timer or
.automount units that trigger a service that as a conditoin that always
fails.
src/core/unit.c