#123 adding ElectrumRS to XXdebugLogs.sh

This commit is contained in:
rootzoll
2020-01-26 21:24:05 +01:00
parent 2d1c785338
commit 95137a6477
2 changed files with 64 additions and 6 deletions

View File

@@ -87,7 +87,7 @@ if [ "${loop}" = "on" ]; then
sudo journalctl -u loopd -b --no-pager -n20
echo ""
else
echo "- RTL is OFF by config"
echo "- Loop is OFF by config"
echo ""
fi
@@ -101,6 +101,19 @@ else
echo ""
fi
if [ "${ElectRS}" = "on" ]; then
echo "*** LAST 20 ElectRS LOGS ***"
echo "sudo journalctl -u electrs -b --no-pager -n20"
sudo journalctl -u electrs -b --no-pager -n20
echo ""
echo "*** ElectRS Status ***"
sudo /home/admin/config.scripts/bonus.electrs.sh status
echo ""
else
echo "- Electrum Rust Server is OFF by config"
echo ""
fi
echo "*** HARDWARE TEST RESULTS ***"
showImproveInfo=0
if [ ${#undervoltageReports} -gt 0 ]; then

View File

@@ -86,22 +86,67 @@ if [ "$1" = "menu" ]; then
# get status
source <(sudo /home/admin/config.scripts/bonus.electrs.sh status)
if [ ${serviceInstalled} -eq 0 ]; then
echo "# FAIL not installed"
exit 1
fi
if [ ${serviceRunning} -eq 0 ]; then
dialog --title "Electrum Service Not Running" --msgbox "
The electrum system service is not running.
Please check the following debug info.
" 8 48
/home/admin/XXdebugInfo.sh
echo "Press ENTER to get back to main menu."
read key
exit 0
fi
if [ ${isSynced} -eq 0 ]; then
dialog --title "Electrum Index Not Ready" --msgbox "
Electrum server is still building its index.
Please wait and try again later.
This can take multiple hours.
" 9 48
exit 0
fi
# Options (available without TOR)
OPTIONS=( \
CONNECT "Connect" \
STATUS "Status"
CONNECT "How to Connect" \
INDEX "Delete/Rebuild Index" \
STATUS "Debug Status Info"
)
CHOICE=$(whiptail --clear --title "Choose Mobile Wallet" --menu "" 13 50 7 "${OPTIONS[@]}" 2>&1 >/dev/tty)
CHOICE=$(whiptail --clear --title "Electrum Rust Server" --menu "menu" 8 50 7 "${OPTIONS[@]}" 2>&1 >/dev/tty)
clear
case $CHOICE in
CONNECT)
echo "connect"
echo "######## How to Connect to Electrum Rust Server #######"
echo
echo "Press ENTER to get back to main menu."
read key
;;
STATUS)
echo "status"
echo "######## Electrum Rust Server Debug Info ########"
sudo /home/admin/config.scripts/bonus.electrs.sh status
echo
echo "Press ENTER to get back to main menu."
read key
;;
INDEX)
echo "######## Delete/Rebuild Index ########"
echo "# stopping service"
sudo systemctl stop electrs
echo "# deleting index"
sudo rm -r /mnt/hdd/app-storage/electrs/db
echo "# starting service"
sudo systemctl start electrs
echo "# ok"
echo
echo "Press ENTER to get back to main menu."
read key
;;
esac