1# SPDX-License-Identifier: LGPL-2.1-or-later 2[Unit] 3Description=TEST-10-ISSUE-2467 4 5[Service] 6ExecStartPre=rm -f /failed /testok 7Type=oneshot 8ExecStart=rm -f /tmp/nonexistent 9ExecStart=systemctl start test10.socket 10ExecStart=-nc -w20 -U /run/test.ctl 11# TriggerLimitIntervalSec= by default is set to 2s. A "sleep 10" should give 12# systemd enough time even on slower machines, to reach the trigger limit. 13ExecStart=sleep 10 14ExecStart=sh -x -c 'test "$(systemctl show test10.socket -P ActiveState)" = failed' 15ExecStart=sh -x -c 'test "$(systemctl show test10.socket -P Result)" = trigger-limit-hit' 16ExecStart=sh -x -c 'echo OK >/testok' 17