add minutely cron job to import log from log file to db

This commit is contained in:
Promofaux 2016-09-28 21:04:14 +01:00
parent 08f86001a2
commit 1fbf182f1b

View file

@ -16,6 +16,10 @@
# Pi-hole: Update Pi-hole! Uncomment to enable auto update # Pi-hole: Update Pi-hole! Uncomment to enable auto update
#30 2 * * 7 root /usr/local/bin/pihole updatePihole #30 2 * * 7 root /usr/local/bin/pihole updatePihole
# Pi-hole: Flush the log daily at 00:00 so it doesn't get out of control # Pi-hole: Import data from pihole.log into database every minute
# Stats will be viewable in the Web interface thanks to the cron job above * * * * * root /usr/local/bin/pihole importLogToDatabase
# Pi-hole: Flush the database daily at 00:00 so it doesn't get out of control
00 00 * * * root /usr/local/bin/pihole flush 00 00 * * * root /usr/local/bin/pihole flush