mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
4c42032854
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.
9 lines
227 B
Desktop File
9 lines
227 B
Desktop File
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
[Unit]
|
|
ConditionPathExists=/tmp/nonexistent
|
|
|
|
[Service]
|
|
ExecStartPre=sh -c 'test "$TRIGGER_PATH" = /tmp/test63'
|
|
ExecStartPre=sh -c 'test "$TRIGGER_UNIT" = test63.path'
|
|
ExecStart=true
|