mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-29 19:22:10 +01:00
double check if chain running
This commit is contained in:
parent
ff53c44578
commit
6053468664
@ -14,6 +14,10 @@ fi
|
||||
# verify that bitcoin is running
|
||||
echo "*** Checking ${network} ***"
|
||||
bitcoinRunning=$(systemctl status ${network}d.service 2>/dev/null | grep -c running)
|
||||
[ ${bitcoinRunning} -eq 0 ]; then
|
||||
#doublecheck
|
||||
bitcoinRunning=$(${network}-cli getblockchaininfo | grep -c verificationprogress)
|
||||
fi
|
||||
if [ ${bitcoinRunning} -eq 0 ]; then
|
||||
# HDD is not available yet
|
||||
echo "FAIL - ${network}d is not running"
|
||||
|
Loading…
x
Reference in New Issue
Block a user