From 6a8318cb5cd2f2c0ae52dcd839170e47ae6e9dd2 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Mon, 10 Oct 2016 21:30:43 +0100 Subject: [PATCH] x11 module: fix display manager restart timeouts It takes more than 1 second to boot the X server. --- nixos/modules/services/x11/xserver.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix index 61308f7d1287..8fb8701e5d87 100644 --- a/nixos/modules/services/x11/xserver.nix +++ b/nixos/modules/services/x11/xserver.nix @@ -529,9 +529,9 @@ in Restart = "always"; RestartSec = "200ms"; SyslogIdentifier = "display-manager"; - # Stop restarting if the display manager stops (crashes) 3 times - # in 3 seconds. - StartLimitInterval = "3s"; + # Stop restarting if the display manager stops (crashes) 2 times + # in one minute. Starting X typically takes 3-4s. + StartLimitInterval = "30s"; StartLimitBurst = "3"; }; };