1 # SPDX-License-Identifier: LGPL-2.1-or-later
3 Description=Test for exec condition that triggers skipping
8 # exit codes [1, 254] will result in skipping the rest of execution
9 ExecCondition=/bin/sh -c 'exit 0'
10 ExecCondition=/bin/sh -c 'exit 254'
12 # This would normally fail the unit but will not get run due to the skip above
13 ExecCondition=/bin/sh -c 'exit 255'
15 # This should not get run
16 ExecStart=sh -c 'true'