mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-23 15:04:29 +02:00
more electrs info
This commit is contained in:
parent
8c7532cb1c
commit
e2d2419bc2
@ -333,7 +333,7 @@ else
|
||||
if [ "${ElectRS}" = "on" ]; then
|
||||
source <(sudo /home/admin/config.scripts/bonus.electrs.sh status)
|
||||
if [ "${isSynced}" = "0" ]; then
|
||||
appInfoLine="Electrum Sync: ${infoSync}"
|
||||
appInfoLine="${color_gray}Electrum Sync Info: ${infoSync}"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -24,9 +24,15 @@ if [ "$1" = "status" ]; then
|
||||
|
||||
serviceInstalled=$(sudo systemctl status electrs --no-page 2>/dev/null | grep -c "electrs.service - Electrs")
|
||||
echo "serviceInstalled=${serviceInstalled}"
|
||||
if [ ${serviceInstalled} -eq 0 ]; then
|
||||
echo "infoSync='Service not installed'"
|
||||
fi
|
||||
|
||||
serviceRunning=$(sudo systemctl status electrs --no-page 2>/dev/null | grep -c "active (running)")
|
||||
echo "serviceRunning=${serviceRunning}"
|
||||
if [ ${serviceRunning} -eq 0 ]; then
|
||||
echo "infoSync='Service not running - check: sudo journalctl -u electrs'"
|
||||
fi
|
||||
|
||||
if [ ${serviceRunning} -eq 1 ]; then
|
||||
# Experimental try to get sync Info
|
||||
@ -319,6 +325,7 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
|
||||
|
||||
isInstalled=$(sudo ls /etc/systemd/system/electrs.service 2>/dev/null | grep -c 'electrs.service')
|
||||
if [ ${isInstalled} -eq 1 ]; then
|
||||
|
||||
echo "*** REMOVING ELECTRS ***"
|
||||
sudo systemctl stop electrs
|
||||
sudo systemctl disable electrs
|
||||
|
Loading…
x
Reference in New Issue
Block a user