mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
test: extend start limit interval
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 8eefd0f4de.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user