summaryrefslogtreecommitdiff
path: root/test/testsuite-63.units
Commit message (Collapse)AuthorAgeFilesLines
* test: make TEST-63 more reliable on slower machinesFrantisek Sumsal2022-08-251-0/+3
| | | | | | | Otherwise we might never hit the trigger limit and wait indefinitely. Found when trying to run the test on an EC2 xen machine without a nested virt in CentOS CI (in preparations for some ... unforseseen consequences).
* service: set TRIGGER_UNIT= and TRIGGER_PATH= on activation by path unitLuca Boccassi2022-08-233-0/+12
| | | | | | | | When a service is triggered by a path unit, pass the path unit name and the path that triggered it via env vars to the spawned processes. Note that this is best-effort, as there might be many triggers at the same time, but we only get woken up by one.
* core: Propagate condition failed state to triggering units.Daan De Meyer2021-11-031-1/+1
| | | | | | | | Alternative to https://github.com/systemd/systemd/pull/20531. Whenever a service triggered by another unit fails condition checks, stop the triggering unit to prevent systemd busy looping trying to start the triggered unit.
* tests: add spdx license header to test unit/link/network/conf filesZbigniew Jędrzejewski-Szmek2021-10-182-0/+2
| | | | | | | | Those are all consumed by our parser, so they all support comments. I was considering whether they should have a license header at all, but in the end I decided to add it because those files are often created by copying parts of real unit files. And if the real ones have a license, then those might as well. It's easier to add it than to make an exception.
* core: Check unit start rate limiting earlierDaan De Meyer2021-08-252-0/+7
Fixes #17433. Currently, if any of the validations we do before we check start rate limiting fail, we can still enter a busy loop as no rate limiting gets applied. A common occurence of this scenario is path units triggering a service that fails a condition check. To fix the issue, we simply move up start rate limiting checks to be the first thing we do when starting a unit. To achieve this, we add a new method to the unit vtable and implement it for the relevant unit types so that we can do the start rate limit checks earlier on.