[systemd-devel] Mutually exclusive (timer-triggered) services
Lennart Poettering
lennart at poettering.net
Thu Oct 31 17:24:03 UTC 2019
On Mo, 14.10.19 18:30, Alexander Koch (mail at alexanderkoch.net) wrote:
> * flock leaves the lock file behind so you'd need some type of cleanup in
> case
> you really want the jobs to be trace-free. This is not as trivial as it
> might
> seem, e.g. you cannot do it from the service units themselves in
> `ExecStartPost=` or similar.
Linux supports BSD and POSIX locks on all kinds of fs objects,
including dirs. It should be possible to just lock the cache dir or so
of pacman (i.e. an fs object that exists anyway), no need to introduce
a new locking file.
Lennart
--
Lennart Poettering, Berlin
More information about the systemd-devel
mailing list