mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
Merge pull request #1497 from CandleHater/patch-1
Fix: "service is not running" error upon boot
This commit is contained in:
commit
598ef1ab7b
1 changed files with 6 additions and 8 deletions
|
@ -63,9 +63,11 @@ if [ ${bitcoinActive} -eq 0 ] || [ ${#bitcoinErrorFull} -gt 0 ] || [ "${1}" == "
|
|||
else
|
||||
|
||||
# output when user login in as admin and bitcoind is not running
|
||||
|
||||
if [ ${uptime} -gt 600 ] || [ ${#bitcoinErrorFull} -gt 0 ] || [ "${bitcoinErrorShort}" == "Error found in Logs" ] || [ "${1}" == "blockchain-error" ]; then
|
||||
|
||||
if [ ${uptime} -lt 600 ]; then
|
||||
infoStr=" The ${network}d service is starting:\n ${bitcoinErrorShort}\n Please wait at least 10min ..."
|
||||
elif [[ "${bitcoinErrorFull}" == *"error code: -28"* ]]; then
|
||||
infoStr=" The ${network}d service is warming up:\n ${bitcoinErrorShort}\n Please wait ..."
|
||||
elif [ ${#bitcoinErrorFull} -gt 0 ] || [ "${bitcoinErrorShort}" == "Error found in Logs" ] || [ "${1}" == "blockchain-error" ]; then
|
||||
clear
|
||||
echo ""
|
||||
echo "*****************************************"
|
||||
|
@ -95,9 +97,6 @@ if [ ${bitcoinActive} -eq 0 ] || [ ${#bitcoinErrorFull} -gt 0 ] || [ "${1}" == "
|
|||
echo "-> Have you tried to turn it off and on again? Use command 'restart'"
|
||||
echo ""
|
||||
exit 1
|
||||
|
||||
else
|
||||
infoStr=" The ${network}d service is starting:\n ${bitcoinErrorShort}\n Please wait up to 10min ..."
|
||||
fi
|
||||
|
||||
fi
|
||||
|
@ -216,7 +215,6 @@ else
|
|||
syncProgress="${syncProgress} %"
|
||||
fi
|
||||
|
||||
|
||||
# formatting LIGHTNING SCAN PROGRESS
|
||||
if [ ${#scanProgress} -eq 0 ]; then
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue