summaryrefslogtreecommitdiffstats
path: root/test/test-execute/exec-condition-failed.service
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-execute/exec-condition-failed.service')
-rw-r--r--test/test-execute/exec-condition-failed.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test-execute/exec-condition-failed.service b/test/test-execute/exec-condition-failed.service
new file mode 100644
index 0000000..4a406dc
--- /dev/null
+++ b/test/test-execute/exec-condition-failed.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Test for exec condition that fails the unit
+
+[Service]
+Type=oneshot
+
+# exit 255 will fail the unit
+ExecCondition=/bin/sh -c 'exit 255'
+
+# This should not get run
+ExecStart=/bin/sh -c 'true'