lnd: higher attempt limit for less-powerful machines

Opening main database sometimes takes longer than 50 ExecStartPost
restPort connection attempts.
This commit is contained in:
nixbitcoin 2020-07-26 11:05:52 +00:00
parent 1bb801ad7b
commit 8f3588b13f
No known key found for this signature in database
GPG Key ID: DD11F9AD5308B3BA

View File

@ -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