mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
fix debug files
This commit is contained in:
parent
dcf64d9754
commit
7d019d57e9
3 changed files with 8 additions and 13 deletions
|
@ -43,6 +43,7 @@ function removeParallelService() {
|
|||
fi
|
||||
sudo systemctl stop ${prefix}bitcoind
|
||||
sudo systemctl disable ${prefix}bitcoind
|
||||
sudo rm /etc/systemd/system/${prefix}bitcoind.service 2>/dev/null
|
||||
if [ ${bitcoinprefix} = signet ];then
|
||||
# check for signet service set up by joininbox
|
||||
if [ -f "/etc/systemd/system/signetd.service" ];then
|
||||
|
@ -133,8 +134,7 @@ User=bitcoin
|
|||
Group=bitcoin
|
||||
Type=forking
|
||||
PIDFile=/mnt/hdd/bitcoin/${prefix}bitcoind.pid
|
||||
ExecStart=/usr/local/bin/bitcoind -${CHAIN} -daemon\
|
||||
-pid=/mnt/hdd/bitcoin/${prefix}bitcoind.pid
|
||||
ExecStart=/usr/local/bin/bitcoind -${CHAIN} -daemon -pid=/mnt/hdd/bitcoin/${prefix}bitcoind.pid -debuglogfile=/mnt/hdd/bitcoin/${prefix}debug.log
|
||||
Restart=always
|
||||
TimeoutSec=120
|
||||
RestartSec=30
|
||||
|
@ -182,13 +182,7 @@ WantedBy=multi-user.target
|
|||
echo "# Installed $(bitcoind --version | grep version)"
|
||||
echo
|
||||
echo "# Monitor the ${prefix}bitcoind with:"
|
||||
if [ ${CHAIN} = signet ]; then
|
||||
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 "# sudo tail -f /mnt/hdd/bitcoin/${prefix}debug.log"
|
||||
echo
|
||||
else
|
||||
echo "# Installation failed"
|
||||
|
|
|
@ -103,8 +103,8 @@ if [ "${testnet}" == "on" ] || [ "${testnet}" == "1" ]; then
|
|||
sudo journalctl -u t${network}d -b --no-pager -n8
|
||||
echo ""
|
||||
echo "*** LAST BLOCKCHAIN 20 INFO LOGS ***"
|
||||
echo "sudo tail -n 20 /mnt/hdd/${network}/testnet3/debug.log"
|
||||
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}/tdebug.log
|
||||
echo ""
|
||||
else
|
||||
echo "- OFF by config -"
|
||||
|
@ -135,8 +135,8 @@ if [ "${signet}" == "on" ] || [ "${signet}" == "1" ]; then
|
|||
sudo journalctl -u s${network}d -b --no-pager -n8
|
||||
echo ""
|
||||
echo "*** LAST BLOCKCHAIN 20 INFO LOGS ***"
|
||||
echo "sudo tail -n 20 /mnt/hdd/${network}/signet/debug.log"
|
||||
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}/sdebug.log
|
||||
echo ""
|
||||
else
|
||||
echo "- OFF by config -"
|
||||
|
|
|
@ -46,6 +46,7 @@ function removeParallelService() {
|
|||
--rpcserver localhost:1${rpcportmod}009 stop
|
||||
sudo systemctl stop ${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
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue