From 1c6ddb1f6a5a76b4e98101cc176941dff6828e48 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 11 Oct 2022 18:27:21 +0200 Subject: [PATCH] lnd: correct a typo where chmod +x was on the old run script previous commit shut down lnd but never brought it up. this update corrects the typo and starts the lnd service. --- lnd/env | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lnd/env b/lnd/env index 6588118..5f552ad 100644 --- a/lnd/env +++ b/lnd/env @@ -28,7 +28,7 @@ lnd_svc_install() { sv start bitcoind || exit 1 exec chpst -u lnd $LND_HOME/$LND_VERSION_DIR_AARCH64/lnd -C /home/lnd/lnd.mainnet.conf 2>&1 EOF - chmod +x /etc/sv/lnd/run + chmod +x /etc/sv/lnd/run.new test -f /etc/sv/lnd/run && diff /etc/sv/lnd/run /etc/sv/lnd/run.new if [ $? -ne 0 ]; then sv -w 600 stop lnd || printf "ERROR: sv stop lnd failed\n" 1>&2 @@ -36,6 +36,9 @@ EOF sv start lnd || printf "ERROR: sv start lnd failed\n" 1>&2 fi rm -f /etc/sv/lnd/run.new + # whatever happened above, try to ensure the service is up + chmod +x /etc/sv/lnd/run + [ ! -f /etc/sv/lnd/down ] && sv start lnd } lnd_cli_install() {