From 681ae2fa7fa8682da1ee6d3d9d5b48697ca64ee5 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Tue, 16 Dec 2014 15:42:08 -0800 Subject: nixos/consul: Don't timeout if start job has many retries --- nixos/modules/services/networking/consul.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'nixos') diff --git a/nixos/modules/services/networking/consul.nix b/nixos/modules/services/networking/consul.nix index c5f5bd79c1a9..b2d5854fbc0c 100644 --- a/nixos/modules/services/networking/consul.nix +++ b/nixos/modules/services/networking/consul.nix @@ -150,6 +150,7 @@ in ExecReload = "${pkgs.consul}/bin/consul reload"; PermissionsStartOnly = true; User = if cfg.dropPrivileges then "consul" else null; + TimeoutStartSec = "${toString (20 + (3 * cfg.joinRetries))}s"; } // (optionalAttrs (cfg.leaveOnStop) { ExecStop = "${pkgs.consul}/bin/consul leave"; }); -- cgit 1.4.1