mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-26 09:10:13 +00:00
Add logrotate for pihole.log
This commit is contained in:
parent
10f77df8bb
commit
3fd2ffd466
3 changed files with 18 additions and 1 deletions
|
@ -23,4 +23,7 @@
|
|||
|
||||
# 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
|
||||
# The flush script will use logrotate if available
|
||||
00 00 * * * root PATH="$PATH:/usr/local/bin/" pihole flush
|
||||
|
||||
@reboot /usr/sbin/logrotate --force /etc/.pihole/logrotate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue