From 8f3588b13f8dbe3b91f220e51b0daff677fe0beb Mon Sep 17 00:00:00 2001 From: nixbitcoin Date: Sun, 26 Jul 2020 11:05:52 +0000 Subject: [PATCH] lnd: higher attempt limit for less-powerful machines Opening main database sometimes takes longer than 50 ExecStartPost restPort connection attempts. --- modules/lnd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lnd.nix b/modules/lnd.nix index 8e5ccc3..0dc0d05 100644 --- a/modules/lnd.nix +++ b/modules/lnd.nix @@ -159,7 +159,7 @@ in { in [ # Run fully privileged for secrets dir write access "+${nix-bitcoin-services.script '' - attempts=50 + attempts=250 while ! { exec 3>/dev/tcp/127.0.0.1/${restPort} && exec 3>&-; } &>/dev/null; do ((attempts-- == 0)) && { echo "lnd REST service unreachable"; exit 1; } sleep 0.1