fix debug files

This commit is contained in:
rootzoll
2021-08-28 19:53:15 +02:00
parent dcf64d9754
commit 7d019d57e9
3 changed files with 8 additions and 13 deletions

View File

@@ -43,6 +43,7 @@ function removeParallelService() {
fi fi
sudo systemctl stop ${prefix}bitcoind sudo systemctl stop ${prefix}bitcoind
sudo systemctl disable ${prefix}bitcoind sudo systemctl disable ${prefix}bitcoind
sudo rm /etc/systemd/system/${prefix}bitcoind.service 2>/dev/null
if [ ${bitcoinprefix} = signet ];then if [ ${bitcoinprefix} = signet ];then
# check for signet service set up by joininbox # check for signet service set up by joininbox
if [ -f "/etc/systemd/system/signetd.service" ];then if [ -f "/etc/systemd/system/signetd.service" ];then
@@ -133,8 +134,7 @@ User=bitcoin
Group=bitcoin Group=bitcoin
Type=forking Type=forking
PIDFile=/mnt/hdd/bitcoin/${prefix}bitcoind.pid PIDFile=/mnt/hdd/bitcoin/${prefix}bitcoind.pid
ExecStart=/usr/local/bin/bitcoind -${CHAIN} -daemon\ ExecStart=/usr/local/bin/bitcoind -${CHAIN} -daemon -pid=/mnt/hdd/bitcoin/${prefix}bitcoind.pid -debuglogfile=/mnt/hdd/bitcoin/${prefix}debug.log
-pid=/mnt/hdd/bitcoin/${prefix}bitcoind.pid
Restart=always Restart=always
TimeoutSec=120 TimeoutSec=120
RestartSec=30 RestartSec=30
@@ -182,13 +182,7 @@ WantedBy=multi-user.target
echo "# Installed $(bitcoind --version | grep version)" echo "# Installed $(bitcoind --version | grep version)"
echo echo
echo "# Monitor the ${prefix}bitcoind with:" echo "# Monitor the ${prefix}bitcoind with:"
if [ ${CHAIN} = signet ]; then echo "# sudo tail -f /mnt/hdd/bitcoin/${prefix}debug.log"
echo "sudo tail -f /mnt/hdd/bitcoin/signet/debug.log"
elif [ ${CHAIN} = testnet ]; then
echo "sudo tail -f /mnt/hdd/bitcoin/testnet3/debug.log"
elif [ ${CHAIN} = mainnet ]; then
echo "sudo tail -f /mnt/hdd/bitcoin/debug.log"
fi
echo echo
else else
echo "# Installation failed" echo "# Installation failed"

View File

@@ -103,8 +103,8 @@ if [ "${testnet}" == "on" ] || [ "${testnet}" == "1" ]; then
sudo journalctl -u t${network}d -b --no-pager -n8 sudo journalctl -u t${network}d -b --no-pager -n8
echo "" echo ""
echo "*** LAST BLOCKCHAIN 20 INFO LOGS ***" echo "*** LAST BLOCKCHAIN 20 INFO LOGS ***"
echo "sudo tail -n 20 /mnt/hdd/${network}/testnet3/debug.log" echo "sudo tail -n 20 /mnt/hdd/${network}/tdebug.log"
sudo tail -n 20 /mnt/hdd/${network}/testnet3/debug.log sudo tail -n 20 /mnt/hdd/${network}/tdebug.log
echo "" echo ""
else else
echo "- OFF by config -" echo "- OFF by config -"
@@ -135,8 +135,8 @@ if [ "${signet}" == "on" ] || [ "${signet}" == "1" ]; then
sudo journalctl -u s${network}d -b --no-pager -n8 sudo journalctl -u s${network}d -b --no-pager -n8
echo "" echo ""
echo "*** LAST BLOCKCHAIN 20 INFO LOGS ***" echo "*** LAST BLOCKCHAIN 20 INFO LOGS ***"
echo "sudo tail -n 20 /mnt/hdd/${network}/signet/debug.log" echo "sudo tail -n 20 /mnt/hdd/${network}/sdebug.log"
sudo tail -n 20 /mnt/hdd/${network}/signet/debug.log sudo tail -n 20 /mnt/hdd/${network}/sdebug.log
echo "" echo ""
else else
echo "- OFF by config -" echo "- OFF by config -"

View File

@@ -46,6 +46,7 @@ function removeParallelService() {
--rpcserver localhost:1${rpcportmod}009 stop --rpcserver localhost:1${rpcportmod}009 stop
sudo systemctl stop ${netprefix}lnd sudo systemctl stop ${netprefix}lnd
sudo systemctl disable ${netprefix}lnd sudo systemctl disable ${netprefix}lnd
sudo rm /etc/systemd/system/${netprefix}lnd.service 2>/dev/null
echo "# ${netprefix}lnd.service on ${CHAIN} is stopped and disabled" echo "# ${netprefix}lnd.service on ${CHAIN} is stopped and disabled"
echo echo
fi fi