[systemd-devel] unable to attach pid to service delegated directory in unified mode after restart
Lennart Poettering
lennart at poettering.net
Mon Mar 28 14:13:40 UTC 2022
On Do, 24.03.22 14:32, Benjamin Berg (benjamin at sipsolutions.net) wrote:
> HI,
>
> On Thu, 2022-03-24 at 12:40 +0100, Felip Moll wrote:
> > False, the JobRemoved signal returns the id, job, unit and result. To
> > wait for JobRemoved only needs a matching rule for this signal. The
> > matching rule can just contain the path. In fact, nothing else than
> > strings can be matched in a rule, so I may be only able to use the
> > path.
>
> I think you need to add a wildcard match before the job is created
> (i.e. before StartTransientUnit). Otherwise registering the match rule
> (using the job's object path) will race with systemd signalling that
> the job has completed.
Correct.
Lennart
--
Lennart Poettering, Berlin
More information about the systemd-devel
mailing list