Logrotate
Force run
logrotate --force [-v] <configfile>
Example
/var/www/example.*.com.*.log {
daily
missingok
rotate 52
compress
delaycompress
notifyempty
}
Syntaxcheck
logrotate -d
logrotate --force [-v] <configfile>
/var/www/example.*.com.*.log {
daily
missingok
rotate 52
compress
delaycompress
notifyempty
}
logrotate -d