]> git.ipfire.org Git - thirdparty/systemd.git/commit
service: set TRIGGER_UNIT= and TRIGGER_PATH= on activation by path unit
authorLuca Boccassi <bluca@debian.org>
Tue, 2 Aug 2022 19:07:35 +0000 (20:07 +0100)
committerLuca Boccassi <bluca@debian.org>
Tue, 23 Aug 2022 19:38:08 +0000 (20:38 +0100)
commit4c420328549ed98c6ca170d8ccc89cbee2f38ccc
tree2fffd3d5c7e3c6e99b24cc55f031c69eab24ac76
parent48b92b37acbd2bf9c36ac5e67961b15723243cda
service: set TRIGGER_UNIT= and TRIGGER_PATH= on activation by path unit

When a service is triggered by a path unit, pass the
path unit name and the path that triggered it via env vars
to the spawned processes.
Note that this is best-effort, as there might be many triggers
at the same time, but we only get woken up by one.
man/systemd.exec.xml
man/systemd.path.xml
src/core/path.c
src/core/path.h
src/core/unit.c
test/testsuite-63.units/test63-glob.path [new file with mode: 0644]
test/testsuite-63.units/test63-glob.service [new file with mode: 0644]
test/testsuite-63.units/test63.service
test/units/testsuite-63.sh