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.
This commit is contained in:
zimbatm
2016-10-10 09:22:04 +01:00
parent 246c937599
commit 07b8442656

View File

@@ -529,6 +529,10 @@ in
Restart = "always";
RestartSec = "200ms";
SyslogIdentifier = "display-manager";
# Stop restarting if the display manager stops (crashes) 3 times
# in 3 seconds.
StartLimitInterval = "3s";
StartLimitBurst = "3";
};
};