HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

test/test-execute/exec-condition-failed.service

Git blob: 6c6f6cfd12de345ac7a880fc1eb09061fd6dabe1

Lines 1–13 of 13

# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for exec condition that fails the unit
 
[Service]
Type=oneshot
 
# exit 255 will fail the unit
ExecCondition=bash -c 'exit 255'
 
# This should not get run
ExecStart=bash -c 'true'