Occasionalmente, ma puntualmente al momento in cui settimanalmente scatta il logrotate di apache, il programma continua a scrivere sul vecchio file:
Codice: Seleziona tutto
# ls -l
total 57800
-rw-r--r-- 1 root apache 0 2012-02-26 04:40 access.log
-rw-r--r-- 1 root apache 4016145 2012-02-26 20:18 access.log.1
-rw-r--r-- 1 root apache 419853 2012-02-26 04:40 access.log.2.gz
-rw-r--r-- 1 root apache 223981 2012-02-19 04:40 access.log.3.gz
-rw-r--r-- 1 root apache 438735 2012-02-12 04:40 access.log.4.gz
-rw-r--r-- 1 root apache 326304 2012-02-05 04:40 access.log.5.gz
Questo è il log rotate di apache:
Codice: Seleziona tutto
# more logrotate.d/apache
/usr/local/www/logs/*.log {
weekly
missingok
rotate 5
compress
delaycompress
notifempty
create 644 root apache
sharedscripts
prerotate
apachectl graceful-stop
sleep 30
endscript
postrotate
apachectl start
endscript
}
Ogni aiuto sarebbe estremamente gradito.