Debian Codegraph @

test/testdata/test-execute/exec-condition-skip.service

raw
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 [Unit]
3 Description=Test for exec condition that triggers skipping
4
5 [Service]
6 Type=oneshot
7
8 # exit codes [1, 254] will result in skipping the rest of execution
9 ExecCondition=bash -c 'exit 0'
10 ExecCondition=bash -c 'exit 254'
11
12 # This would normally fail the unit but will not get run due to the skip above
13 ExecCondition=bash -c 'exit 255'
14
15 # This should not get run
16 ExecStart=bash -c 'true'