mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 15:21:37 +03:00
12 lines
209 B
SYSTEMD
12 lines
209 B
SYSTEMD
|
[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'
|