git.iko.soy/typeable/nixpkgs
on master help sign in
x11 module: don't restart the display manager indefinitely (#19418)

* x11 module: don't restart the display manager indefinitely If the display managers crashes continuously in loops it prevents the user from switching to the console and try to fix things. Especially when using the "auto" display manager it can happen quite easily. * x11 module: fix display manager restart timeouts It takes more than 1 second to boot the X server.

commite026d5b9c813084d029382f3af72a57e3142fae1 authorzimbatm <zimbatm@zimbatm.com> dateMon 10 Oct 2016, 21:35 (10 years ago) parentcb9d26d
1 file changed+4
nixos/modules/services/x11/xserver.nix+4
nixos/modules/services/x11/xserver.nix+4
@@ -539,6 +539,10 @@ in
539539 Restart = "always";
540540 RestartSec = "200ms";
541541 SyslogIdentifier = "display-manager";
542+ # Stop restarting if the display manager stops (crashes) 2 times
543+ # in one minute. Starting X typically takes 3-4s.
544+ StartLimitInterval = "30s";
545+ StartLimitBurst = "3";
542546 };
543547 };
544548