#2659 small log improvements

This commit is contained in:
rootzoll 2022-05-17 18:48:33 +02:00
parent eb88651abd
commit 7f1c545d6b
2 changed files with 6 additions and 2 deletions

View File

@ -52,9 +52,9 @@ echo "### BASIC SYSTEM SETTINGS ###" >> ${logFile}
echo "# Make sure the user bitcoin is in the debian-tor group"
usermod -a -G debian-tor bitcoin
echo "# Optimizing log files: rotate daily, keep 2 weeks & compress old days " >> ${logFile}
echo "# Optimizing log files: rotate daily, keep 1 week & compress old days " >> ${logFile}
sed -i "s/^weekly/daily/g" /etc/logrotate.conf >> ${logFile} 2>&1
sed -i "s/^rotate 4/rotate 14/g" /etc/logrotate.conf >> ${logFile} 2>&1
sed -i "s/^rotate 4/rotate 7/g" /etc/logrotate.conf >> ${logFile} 2>&1
sed -i "s/^#compress/compress/g" /etc/logrotate.conf >> ${logFile} 2>&1
systemctl restart logrotate

View File

@ -395,6 +395,10 @@ echo "*** SYSTEM CACHE STATUS ***"
/home/admin/_cache.sh "export" ln_default | grep -v "ln_default_address"
/home/admin/_cache.sh "export" btc_default | grep -v "btc_default_address"
echo "*** LOGFILES ***"
sudo journalctl --disk-usage
sudo du -sh /var/log
echo
echo "*** OPTION: SHARE THIS DEBUG OUTPUT ***"
echo "An easy way to share this debug output on GitHub or on a support chat"