mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 23:21:22 +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.
8 lines
246 B
Desktop File
8 lines
246 B
Desktop File
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
[Service]
|
|
ExecStartPre=sh -c 'test "$TRIGGER_PATH" = /tmp/test63-glob-foo'
|
|
ExecStartPre=sh -c 'test "$TRIGGER_UNIT" = test63-glob.path'
|
|
ExecStart=systemd-notify --ready
|
|
RemainAfterExit=yes
|
|
Type=notify
|