Re: [systemd-devel] Using *.path units without races?

2020-03-19 Thread Michael Chapman
On Fri, 20 Mar 2020, Uwe Geuder wrote: [...] > > PathChanged= and PathModified= each map down to a set of inotify > > events. It's the kernel's inotify system that determines whether the > > file changed or modified, not systemd. > > My understanding is that since > https://github.com/systemd/syst

Re: [systemd-devel] Using *.path units without races?

2020-03-19 Thread Uwe Geuder
Hi! On Fri, 20 Mar 2020 at 00:31, Michael Chapman wrote: > > On Fri, 20 Mar 2020, Uwe Geuder wrote: > [...] > > The manual page is not very specific about how that is supposed to work > > IMHO, but I could imagine the following distinction: > > > > PathExists=, PathExistsGlob=, and DirectoryNotEm

Re: [systemd-devel] Using *.path units without races?

2020-03-19 Thread Michael Chapman
On Fri, 20 Mar 2020, Uwe Geuder wrote: [...] > The manual page is not very specific about how that is supposed to work > IMHO, but I could imagine the following distinction: > > PathExists=, PathExistsGlob=, and DirectoryNotEmpty= are absolute > predicates. When setting the path unit to waiting on

Re: [systemd-devel] Using *.path units without races?

2020-03-19 Thread Uwe Geuder
Hi again, On Thu, 19 Mar 2020 at 00:20, Uwe Geuder wrote: > > Hi! > > On Tue, 17 Mar 2020 at 23:52, Michael Chapman wrote: > > > > On Wed, 18 Mar 2020, Uwe Geuder wrote: > > > Hi! > > > > > > I have wondered for a while how I can use *.path units without (too bad) > > > races. > > > > > > Since >

Re: [systemd-devel] Using *.path units without races?

2020-03-18 Thread Uwe Geuder
Hi! On Tue, 17 Mar 2020 at 23:52, Michael Chapman wrote: > > On Wed, 18 Mar 2020, Uwe Geuder wrote: > > Hi! > > > > I have wondered for a while how I can use *.path units without (too bad) > > races. > > > > Since > > https://github.com/systemd/systemd/pull/13509/commits/06582e42de65a61d0238a18720

Re: [systemd-devel] Using *.path units without races?

2020-03-17 Thread Michael Chapman
On Wed, 18 Mar 2020, Uwe Geuder wrote: > Hi! > > I have wondered for a while how I can use *.path units without (too bad) > races. > > Since > https://github.com/systemd/systemd/pull/13509/commits/06582e42de65a61d0238a18720a12b6353edb7cd > the behaviour has been become much clearer, but I must ad

[systemd-devel] Using *.path units without races?

2020-03-17 Thread Uwe Geuder
Hi! I have wondered for a while how I can use *.path units without (too bad) races. Since https://github.com/systemd/systemd/pull/13509/commits/06582e42de65a61d0238a18720a12b6353edb7cd the behaviour has been become much clearer, but I must admit I still don't get it. https://www.freedesktop.org/