#3872 adding "shrinkdebugfile=1" to bitcoin.conf (#4297)

* #3872 adding shrinkdebugfile=1
This commit is contained in:
/rootzoll 2023-12-18 23:50:44 +01:00 committed by GitHub
parent 1404ac3285
commit de18ad8b36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -897,8 +897,10 @@ else
################################ ################################
# LND and Blockchain Errors will be still in systemd journals # LND and Blockchain Errors will be still in systemd journals
# /mnt/hdd/bitcoin/debug.log # limit debug.log to 10MB on start - see #3872
rm /mnt/hdd/${network}/debug.log 2>/dev/null if [ $(grep -c "shrinkdebugfile=" < /mnt/hdd/bitcoin/bitcoin.conf) -eq 0 ];then
echo "shrinkdebugfile=1" | sudo tee -a /mnt/hdd/bitcoin/bitcoin.conf
fi
# /mnt/hdd/lnd/logs/bitcoin/mainnet/lnd.log # /mnt/hdd/lnd/logs/bitcoin/mainnet/lnd.log
rm /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log 2>/dev/null rm /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log 2>/dev/null
# https://github.com/rootzoll/raspiblitz/issues/1700 # https://github.com/rootzoll/raspiblitz/issues/1700