#2659 journalctl --vacuum-size once a day (#3525)

This commit is contained in:
/rootzoll 2022-12-15 16:05:31 +01:00 committed by GitHub
parent 9ebf9c63a5
commit 9d3e4faf3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,6 +76,18 @@ do
continue
fi
####################################################
# MONITOR LOG SIZES
# https://github.com/rootzoll/raspiblitz/issues/2659
####################################################
# once a day 5 minutes
recheckLogs=$((($counter % 86400)+2))
if [ ${recheckLogs} -eq 1 ]; then
echo "*** MONITOR LOG SIZES ***"
journalctl --vacuum-size=100M
fi
####################################################
# RECHECK DHCP-SERVER
# https://github.com/rootzoll/raspiblitz/issues/160