mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 20:16:35 +00:00
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:
parent
ad909e9c93
commit
50fd9046bc
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue