Add burst limit to login to prevent endless retries (#690)
This commit is contained in:
parent
ae910df769
commit
171ca57908
@ -227,6 +227,8 @@ Type=simple
|
|||||||
ExecStart=/usr/local/bin/seamless-login uwsm start -- hyprland.desktop
|
ExecStart=/usr/local/bin/seamless-login uwsm start -- hyprland.desktop
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=2
|
RestartSec=2
|
||||||
|
StartLimitIntervalSec=30
|
||||||
|
StartLimitBurst=2
|
||||||
User=$USER
|
User=$USER
|
||||||
TTYPath=/dev/tty1
|
TTYPath=/dev/tty1
|
||||||
TTYReset=yes
|
TTYReset=yes
|
||||||
|
31
migrations/1754929475.sh
Normal file
31
migrations/1754929475.sh
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
echo "Add start burst limit to login"
|
||||||
|
if [ -f /etc/systemd/system/omarchy-seamless-login.service ]; then
|
||||||
|
cat <<EOF | sudo tee /etc/systemd/system/omarchy-seamless-login.service
|
||||||
|
[Unit]
|
||||||
|
Description=Omarchy Seamless Auto-Login
|
||||||
|
Documentation=https://github.com/basecamp/omarchy
|
||||||
|
Conflicts=getty@tty1.service
|
||||||
|
After=systemd-user-sessions.service getty@tty1.service plymouth-quit.service systemd-logind.service
|
||||||
|
PartOf=graphical.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/local/bin/seamless-login uwsm start -- hyprland.desktop
|
||||||
|
Restart=always
|
||||||
|
RestartSec=2
|
||||||
|
StartLimitIntervalSec=30
|
||||||
|
StartLimitBurst=2
|
||||||
|
User=$USER
|
||||||
|
TTYPath=/dev/tty1
|
||||||
|
TTYReset=yes
|
||||||
|
TTYVHangup=yes
|
||||||
|
TTYVTDisallocate=yes
|
||||||
|
StandardInput=tty
|
||||||
|
StandardOutput=journal
|
||||||
|
StandardError=journal+console
|
||||||
|
PAMName=login
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=graphical.target
|
||||||
|
EOF
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user