mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-02-27 05:28:23 +00:00
add minutely cron job to import log from log file to db
This commit is contained in:
parent
08f86001a2
commit
1fbf182f1b
1 changed files with 6 additions and 2 deletions
|
@ -16,6 +16,10 @@
|
|||
# Pi-hole: Update Pi-hole! Uncomment to enable auto update
|
||||
#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
|
||||
# Stats will be viewable in the Web interface thanks to the cron job above
|
||||
# Pi-hole: Import data from pihole.log into database every minute
|
||||
* * * * * 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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue