diff --git a/home.admin/00settingsMenuServices.sh b/home.admin/00settingsMenuServices.sh index 283ec01de..62eeb0421 100644 --- a/home.admin/00settingsMenuServices.sh +++ b/home.admin/00settingsMenuServices.sh @@ -128,18 +128,20 @@ if [ "${loop}" != "${choice}" ]; then errorOnInstall=$? if [ "${choice}" = "on" ]; then if [ ${errorOnInstall} -eq 0 ]; then - # add Go vars to current session + sudo systemctl start loopd if [ ${#GOPATH} -eq 0 ]; then whiptail --title " Installed the Lightning Loop Service (loopd) " --msgbox "\ Usage and examples: https://github.com/lightninglabs/loop#loop-out-swaps\n -Start a new terminal session (log in again with ssh) and -start from the command line by typing 'loop' to see the options. +Start from the command line after the reboot +Use the command 'loop' to see the options. " 11 75 + needsReboot=1 else whiptail --title " Installed the Lightning Loop Service (loopd) " --msgbox "\ Usage and examples: https://github.com/lightninglabs/loop#loop-out-swaps\n -Use can use command 'loop' to see the options. +Use the command 'loop' to see the options. " 10 75 + needsReboot=0 fi else l1="FAILED to install Lightning LOOP" @@ -319,6 +321,7 @@ if [ "${rtlWebinterface}" != "${choice}" ]; then errorOnInstall=$? if [ "${choice}" = "on" ]; then if [ ${errorOnInstall} -eq 0 ]; then + sudo systemctl start RTL localip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') if [ "${runBehindTor}" = "on" ]; then TOR_ADDRESS=$(sudo cat /mnt/hdd/tor/RTL/hostname) @@ -356,6 +359,7 @@ if [ "${BTCRPCexplorer}" != "${choice}" ]; then errorOnInstall=$? if [ "${choice}" = "on" ]; then if [ ${errorOnInstall} -eq 0 ]; then + sudo sytemctl start btc-rpc-explorer localip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') if [ "${runBehindTor}" = "on" ]; then TOR_ADDRESS=$(sudo cat /mnt/hdd/tor/btc-rpc-explorer/hostname) @@ -443,6 +447,7 @@ if [ "${ElectRS}" != "${choice}" ]; then errorOnInstall=$? if [ "${choice}" = "on" ]; then if [ ${errorOnInstall} -eq 0 ]; then + sudo systemctl start electrs localip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') if [ "${runBehindTor}" = "on" ]; then TOR_ADDRESS=$(sudo cat /mnt/hdd/tor/electrs/hostname) diff --git a/home.admin/config.scripts/bonus.btc-rpc-explorer.sh b/home.admin/config.scripts/bonus.btc-rpc-explorer.sh index 396b93552..ca7e3ba37 100644 --- a/home.admin/config.scripts/bonus.btc-rpc-explorer.sh +++ b/home.admin/config.scripts/bonus.btc-rpc-explorer.sh @@ -156,10 +156,6 @@ EOF echo "BTC-RPC-explorer already installed." fi - # start service - echo "Starting service" - sudo systemctl start btc-rpc-explorer 2>/dev/null - # setting value in raspi blitz config sudo sed -i "s/^BTCRPCexplorer=.*/BTCRPCexplorer=on/g" /mnt/hdd/raspiblitz.conf diff --git a/home.admin/config.scripts/bonus.electrs.sh b/home.admin/config.scripts/bonus.electrs.sh index e0857774d..7ba70ec5f 100644 --- a/home.admin/config.scripts/bonus.electrs.sh +++ b/home.admin/config.scripts/bonus.electrs.sh @@ -266,7 +266,6 @@ RestartSec=60 WantedBy=multi-user.target " | sudo tee -a /etc/systemd/system/electrs.service sudo systemctl enable electrs - sudo systemctl start electrs # manual start: # sudo -u electrs /home/electrs/.cargo/bin/cargo run --release -- --index-batch-size=10 --electrum-rpc-addr="0.0.0.0:50001" echo "" @@ -277,9 +276,6 @@ WantedBy=multi-user.target else echo "ElectRS is already installed." - # start service - echo "start service" - sudo systemctl start electrs 2>/dev/null fi # setting value in raspiblitz config diff --git a/home.admin/config.scripts/bonus.loop.sh b/home.admin/config.scripts/bonus.loop.sh index 5b1b8ce1b..015a4fd9e 100644 --- a/home.admin/config.scripts/bonus.loop.sh +++ b/home.admin/config.scripts/bonus.loop.sh @@ -63,10 +63,6 @@ WantedBy=multi-user.target else echo "Loop service already installed." fi - - # start service - echo "Starting service" - sudo systemctl start loopd 2>/dev/null # setting value in raspi blitz config sudo sed -i "s/^loop=.*/loop=on/g" /mnt/hdd/raspiblitz.conf diff --git a/home.admin/config.scripts/bonus.rtl.sh b/home.admin/config.scripts/bonus.rtl.sh index d8e778409..eabe69c01 100755 --- a/home.admin/config.scripts/bonus.rtl.sh +++ b/home.admin/config.scripts/bonus.rtl.sh @@ -93,10 +93,6 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then echo "RTL already installed." fi - # start service - echo "Starting service" - sudo systemctl start RTL 2>/dev/null - # setting value in raspi blitz config sudo sed -i "s/^rtlWebinterface=.*/rtlWebinterface=on/g" /mnt/hdd/raspiblitz.conf