uwsgi logrotate の構成ファイルをセットアップしました。テストしたところ、うまくいくように見えました。
logrotate -dvf /etc/logrotate.d/uwsgi
reading config file /etc/logrotate.d/uwsgi
reading config info for "/var/log/uwsgi/*.log"
Handling 1 logs
rotating pattern: "/var/log/uwsgi/*.log" forced from command line (5 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/uwsgi/uwsgi.log
log needs rotating
rotating log /var/log/uwsgi/uwsgi.log, log->rotateCount is 5
dateext suffix '-20131211'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
glob finding old rotated logs failed
copying /var/log/uwsgi/uwsgi.log to /var/log/uwsgi/uwsgi.log-20131211
truncating /var/log/uwsgi/uwsgi.log
compressing log with: /bin/gzip
しかし、cron ジョブは実行され、何も起こりませんでした。何が間違っている可能性がありますか?私のエントリーは
"/var/log/uwsgi/*.log" {
copytruncate
daily
dateext
rotate 5
compress
}
cronログで見ることができます
Dec 11 03:45:01 myhost run-parts(/etc/cron.daily)[930]: finished logrotate
「何が起こったのか」についての詳細をどこかで取得できますか? logrotate ジョブの詳細な出力ですか?