/opt/log/app/app.log.* { rotate 0 missingok nomail }
可以记录旋转执行此操作还是应该编写脚本并将其放在cron中?
最好,-Iulian
/opt/log/app/app.log.* { missingok nomail postrotate /usr/bin/find /opt/log/app/ -name "app.log.*" -type f -mtime +0 -exec rm {} \; endscript }