logrotate> removing delaycompress function: should I compress the last log myself?
- by user120006
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 ?