summaryrefslogtreecommitdiffstats
path: root/test/TEST-63-PATH/TEST-63-PATH.units/test63.service
diff options
context:
space:
mode:
Diffstat (limited to 'test/TEST-63-PATH/TEST-63-PATH.units/test63.service')
-rw-r--r--test/TEST-63-PATH/TEST-63-PATH.units/test63.service8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/TEST-63-PATH/TEST-63-PATH.units/test63.service b/test/TEST-63-PATH/TEST-63-PATH.units/test63.service
new file mode 100644
index 0000000..01a928b
--- /dev/null
+++ b/test/TEST-63-PATH/TEST-63-PATH.units/test63.service
@@ -0,0 +1,8 @@
+# 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