From 929eb5813e0eb2a188f2128ad35cb50d6747bc63 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Sun, 3 Jul 2022 00:35:22 +0200 Subject: [PATCH] reboot after copy blockchain --- home.admin/config.scripts/blitz.copychain.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/home.admin/config.scripts/blitz.copychain.sh b/home.admin/config.scripts/blitz.copychain.sh index 52e148772..3b9173c2c 100644 --- a/home.admin/config.scripts/blitz.copychain.sh +++ b/home.admin/config.scripts/blitz.copychain.sh @@ -284,16 +284,17 @@ if [ "$1" = "target" ]; then sleep 2 fi - echo "restarting services ... (please wait)" - sudo systemctl enable bitcoind - sudo systemctl start bitcoind - sudo systemctl start lnd 2>/dev/null - sudo systemctl start lightningd 2>/dev/null - sleep 10 - # setting copy state /home/admin/_cache.sh set state "ready" /home/admin/_cache.sh set message "Node Running" + + echo "restarting services ... (please wait)" + sudo systemctl enable bitcoind + + echo "rebooting" + /home/admin/config.scripts/blitz.shutdown.sh reboot + exit + fi ###################