]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: extend start limit interval
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 25 Oct 2025 06:34:44 +0000 (15:34 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 25 Oct 2025 13:23:59 +0000 (22:23 +0900)
As the modified service requires about ~10 seconds for stopping, the
service never hit the start limit even if we tried to restart the
service more than 5 times.

This also checks that the service is actually triggered by dbus method
call.

Follow-up for 8eefd0f4debc0bcfeea89dd39c43e3318f3f7ae7.

test/units/TEST-07-PID1.start-limit.sh

index f793d328763ea72a0fdef2751d3e637fd66694b9..ed9f4b37c19f232e2862c3525ebd4caa87f3071a 100755 (executable)
@@ -19,7 +19,7 @@ mkdir -p /run/systemd/system/systemd-resolved.service.d/
 cat >/run/systemd/system/systemd-resolved.service.d/99-start-limit.conf <<EOF
 [Unit]
 StartLimitBurst=5
-StartLimitInterval=30
+StartLimitInterval=100
 
 [Service]
 ExecStopPost=sleep 10
@@ -39,4 +39,5 @@ for i in {1..5}; do
         journalctl -o short-monotonic --no-hostname --no-pager -u systemd-resolved.service -n 15
         exit 1
     fi
+    systemctl is-active systemd-resolved.service
 done