]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/units/testsuite-63.service
tests: add spdx license header to test unit/link/network/conf files
[thirdparty/systemd.git] / test / units / testsuite-63.service
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 [Unit]
3 Description=TEST-63-ISSUE-17433
4
5 [Service]
6 ExecStartPre=rm -f /failed /testok
7 Type=oneshot
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.
12 ExecStart=sleep 2
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'