logrotate changing the date & time of files to today's date during second time execution while deleting old logs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
logrotate (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
using ubuntu 14.04 ISO image
logrotate version is 3.8.7
below configuration i am using in logrotate:
/home/data/
/home/data/
/home/data/
/home/data/
{
rotate 0
missingok
firstaction
endscript
}
results:
when i run first time it is working as expected (removing old logs and not touching other logs)
and when i run again it is not removing any logs as expected but changing timestamp so it is a problem as removing old logs is completely depend on modified timme (-mtime) on find command
please suggest not to modify timestamp when i run second time
Please someone take a look and confirm thanks