nixos/consul: Don't timeout if start job has many retries

This commit is contained in:
William A. Kennington III 2014-12-16 15:42:08 -08:00
parent 56908ab49f
commit 681ae2fa7f

View File

@ -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";
});