舊的 logrotate 設定就不適用於 docker 版本的 apache 了
舊設定
/var/log/httpd/*log {
missingok
notifempty
sharedscripts
delaycompress
postrotate
/bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true
endscript
}
這邊改成
/var/log/httpd/*log {
missingok
notifempty
sharedscripts
delaycompress
postrotate
docker container kill apache2 -s USR1
endscript
}
0 意見:
張貼留言