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.
This commit is contained in:
zimbatm 2016-10-10 21:35:37 +01:00 committed by GitHub
parent cb9d26d5cb
commit e026d5b9c8

View File

@ -539,6 +539,10 @@ in
Restart = "always";
RestartSec = "200ms";
SyslogIdentifier = "display-manager";
# Stop restarting if the display manager stops (crashes) 2 times
# in one minute. Starting X typically takes 3-4s.
StartLimitInterval = "30s";
StartLimitBurst = "3";
};
};