[systemd-devel] unable to attach pid to service delegated directory in unified mode after restart

Benjamin Berg benjamin at sipsolutions.net
Thu Mar 24 13:32:11 UTC 2022


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.

Benjamin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20220324/6f3c2762/attachment.sig>


More information about the systemd-devel mailing list