1 # SPDX-License-Identifier: LGPL-2.1-or-later
3 Description=TEST-63-ISSUE-17433
6 ExecStartPre=rm -f /failed /testok
8 ExecStart=rm -f /tmp/nonexistent
9 ExecStart=systemctl start test63.path
10 ExecStart=touch /tmp/test63
11 # Make sure systemd has sufficient time to hit the start limit for test63.service.
13 ExecStart=sh -x -c 'test "$(systemctl show test63.service -P ActiveState)" = failed'
14 ExecStart=sh -x -c 'test "$(systemctl show test63.service -P Result)" = start-limit-hit'
15 ExecStart=sh -x -c 'test "$(systemctl show test63.path -P ActiveState)" = failed'
16 ExecStart=sh -x -c 'test "$(systemctl show test63.path -P Result)" = unit-start-limit-hit'
17 ExecStart=sh -x -c 'echo OK >/testok'