fix(systemd): move StartLimit* keys to [Unit] section

systemd ignored them in [Service] and warned at load. Moving to [Unit]
makes the 10-burst / 60s rate limit actually take effect.
This commit is contained in:
Mitchell R 2026-05-13 03:25:54 +02:00
parent ad909e9c93
commit 50fd9046bc

View file

@ -5,6 +5,9 @@ After=systemd-user-sessions.service plymouth-quit-wait.service network-online.ta
Wants=network-online.target Wants=network-online.target
Conflicts=getty@tty1.service Conflicts=getty@tty1.service
After=getty@tty1.service After=getty@tty1.service
# After 10 fast restarts in 60s, back off so a broken binary doesn't burn CPU.
StartLimitIntervalSec=60
StartLimitBurst=10
[Service] [Service]
Type=simple Type=simple
@ -30,9 +33,6 @@ Environment=BETTERFRAME_SERVER=http://localhost
ExecStart=/usr/bin/cage -s -- /opt/betterframe/kiosk/betterframe-kiosk ExecStart=/usr/bin/cage -s -- /opt/betterframe/kiosk/betterframe-kiosk
Restart=always Restart=always
RestartSec=2 RestartSec=2
# After 10 fast restarts, back off for 30s so a broken binary doesn't burn the CPU.
StartLimitIntervalSec=60
StartLimitBurst=10
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target