Last active
December 17, 2015 00:49
-
-
Save hfm/5523440 to your computer and use it in GitHub Desktop.
logrotate setting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| weekly | |
| rotate 4 | |
| start 1 | |
| dateext | |
| dateformat -%Y-%m-%d | |
| missingok | |
| create | |
| compress | |
| include /usr/local/etc/logrotate.d | |
| mail ****@****.**** | |
| maillast |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /var/log/clamav/clamd.log { | |
| size 5k | |
| postrotate | |
| test -r /var/run/clamav/clamd.pid && kill -USR1 `cat /var/run/clamav/clamd.pid` | |
| endscript | |
| } | |
| /var/log/clamav/freshclam.log { | |
| size 5k | |
| postrotate | |
| test -r /var/run/clamav/freshclam.pid && kill -USR1 `cat /var/run/clamav/freshclam.pid` | |
| endscript | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /var/log/nginx/access.log /var/log/nginx/errer.log /var/log/nginx/wp.access.log /var/log/nginx/wp.error.log { | |
| size 1M | |
| sharedscripts | |
| postrotate | |
| test -r /var/run/nginx.pid && kill -USR1 `cat /var/run/nginx.pid` | |
| endscript | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment