diff options
author | Luca Boccassi <bluca@debian.org> | 2022-08-02 20:07:35 +0100 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2022-08-23 20:38:08 +0100 |
commit | 4c420328549ed98c6ca170d8ccc89cbee2f38ccc (patch) | |
tree | 2fffd3d5c7e3c6e99b24cc55f031c69eab24ac76 /man/systemd.exec.xml | |
parent | 48b92b37acbd2bf9c36ac5e67961b15723243cda (diff) | |
download | systemd-4c420328549ed98c6ca170d8ccc89cbee2f38ccc.tar.gz |
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.
Diffstat (limited to 'man/systemd.exec.xml')
-rw-r--r-- | man/systemd.exec.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml index d9da864bc2..2acb737c38 100644 --- a/man/systemd.exec.xml +++ b/man/systemd.exec.xml @@ -3695,6 +3695,19 @@ StandardInputData=V2XigLJyZSBubyBzdHJhbmdlcnMgdG8gbG92ZQpZb3Uga25vdyB0aGUgcnVsZX system.</para></listitem> </varlistentry> + <varlistentry> + <term><varname>$TRIGGER_UNIT</varname></term> + <term><varname>$TRIGGER_PATH</varname></term> + + <listitem><para>If the unit was activated dynamically (e.g.: a corresponding path unit), the + unit that triggered it and other type-dependent information will be passed via these variables. Note that + this information is provided in a best-effort way. For example, multiple triggers happening one after + another will be coalesced and only one will be reported, with no guarantee as to which one it will be. + Because of this, in most cases this variable will be primarily informational, i.e. useful for debugging + purposes, is lossy, and should not be relied upon to propagate a comprehensive reason for activation. + </para></listitem> + </varlistentry> + </variablelist> <para>For system services, when <varname>PAMName=</varname> is enabled and <command>pam_systemd</command> is part |