logrotate> removing delaycompress function: should I compress the last log myself?

Posted by user120006 on Server Fault See other posts from Server Fault or by user120006
Published on 2012-05-05T16:50:16Z Indexed on 2012/06/10 16:42 UTC
Read the original article Hit count: 211

Filed under:
|
|

I'm removing the delaycompress function from my logrotating script. Before running logrotate again, should I compress the last log myself ?

This is the actual situation:

-rw-r-----  1 root adm  4,7M  5 mag 18:38 access.log
-rw-r-----  1 root adm  5,2M 29 apr 05:44 access.log.1
-rw-r-----  1 root adm  473K 22 apr 05:45 access.log.2.gz
-rw-r-----  1 root adm  605K 15 apr 05:44 access.log.3.gz
-rw-r-----  1 root adm  588K  8 apr 05:44 access.log.4.gz

The question is: Should I compress "access.log.1" and THEN launch logrotate ?

Or logrotate will understand I removed the "delaycompress" option and fix things himself ?

© Server Fault or respective owner

Related posts about apache2

Related posts about configuration