sddm/services/sddm.service.in
Fabian Vogt ec16a24149 sddm.service: Limit restarts
Currently it's possible to have sddm in a crash loop. The systemd default
is to block restarts if there are more than 5 during 10s, but sddm is too
slow to start to trigger that.
Limit it to a max of two restarts during 30s to work reliably even on slow
systems with complex themes.

Reported on https://bugzilla.opensuse.org/show_bug.cgi?id=1142492
2019-07-29 16:05:25 +02:00

16 lines
376 B
SYSTEMD

[Unit]
Description=Simple Desktop Display Manager
Documentation=man:sddm(1) man:sddm.conf(5)
Conflicts=getty@tty1.service
After=systemd-user-sessions.service getty@tty1.service plymouth-quit.service systemd-logind.service
StartLimitIntervalSec=30
StartLimitBurst=2
[Service]
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/sddm
Restart=always
[Install]
Alias=display-manager.service