]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/units/testsuite-10.service
tests: add spdx license header to test unit/link/network/conf files
[thirdparty/systemd.git] / test / units / testsuite-10.service
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 [Unit]
3 Description=TEST-10-ISSUE-2467
4
5 [Service]
6 ExecStartPre=rm -f /failed /testok
7 Type=oneshot
8 ExecStart=rm -f /tmp/nonexistent
9 ExecStart=systemctl start test10.socket
10 ExecStart=sh -x -c 'printf x >test.file'
11 ExecStart=-socat -T20 OPEN:test.file UNIX-CONNECT:/run/test.ctl
12 # TriggerLimitIntervalSec= by default is set to 2s. A "sleep 10" should give
13 # systemd enough time even on slower machines, to reach the trigger limit.
14 ExecStart=sleep 10
15 ExecStart=sh -x -c 'test "$(systemctl show test10.socket -P ActiveState)" = failed'
16 ExecStart=sh -x -c 'test "$(systemctl show test10.socket -P Result)" = trigger-limit-hit'
17 ExecStart=sh -x -c 'echo OK >/testok'