set #1617 dealess to 60sec delay & fix jm info (#1630)

This commit is contained in:
Christian Rotzoll 2020-10-06 22:31:40 +02:00 committed by GitHub
parent cf1df21a6f
commit f55ef057ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -282,8 +282,9 @@ else
fi
# show JoinMarket stats in place of the LND URI only if the Yield Generator is running
source /home/joinmarket/joinin.conf
if [ $(sudo -u joinmarket pgrep -f "python yg-privacyenhanced.py $YGwallet --wallet-password-stdin" 2>/dev/null | wc -l) -gt 2 ]; then
source /home/joinmarket/joinin.conf 2>/dev/null
if [ "${joinmarket}" = "on" ] && [ $(sudo -u joinmarket pgrep -f "python yg-privacyenhanced.py $YGwallet --wallet-password-stdin" 2>/dev/null | wc -l) -gt 2 ]; then
JMstats=$(mktemp 2>/dev/null)
sudo -u joinmarket /home/joinmarket/info.stats.sh > $JMstats
JMstatsL1=$(sed -n 1p < "$JMstats")
@ -297,10 +298,10 @@ ${color_gray} ║║║║ ${color_gray}$JMstatsL2
${color_gray} ╚╝╩ ╩ ${color_gray}$JMstatsL3
${color_gray}====${color_gray}$JMstatsL4"
else
lastLine="\
lastLine="\
${color_yellow}
${color_yellow}${ln_publicColor}${ln_external}${color_gray}"
fi
fi
sleep 5

View File

@ -85,8 +85,8 @@ while :
#
isHeadless=$(cat "${configFile}" 2>/dev/null | grep -Ec "headless=1|headless=on")
if [ ${isHeadless} -gt 0 ]; then
echo "*** headless=on sleeping 600 seconds ***" | systemd-cat
sleep 600
echo "*** headless=on sleeping 60 seconds ***" | systemd-cat
sleep 60
fi
###########################