Re: Mutually exclusive (timer-triggered) services

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mo, 14.10.19 18:30, Alexander Koch (mail@xxxxxxxxxxxxxxxxx) 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
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux