getting error message "error: error opening /home/attlas/data/flog/abc1.log: No such file or directory" when i use firstaction parameter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
logrotate (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 14.04
logrotate 3.8.7
Using logrotate to remove old logs and i found the solution with logroate and used below configuration to remove old files with 'firstaction' parameter
/home/attlas/
/home/attlas/
{
rotate 0
daily
missingok
copy
firstaction
endscript
}
and when i executed 'logrotate -f /etc/logrotate.
root@kosmos:
/home/attlas/
/home/attlas/
/home/attlas/
/home/attlas/
/home/attlas/
/home/attlas/
error: error opening /home/attlas/
error: error opening /home/attlas/
error: error opening /home/attlas/
error: error opening /home/attlas/
error: error opening /home/attlas/
error: error opening /home/attlas/
to adaquate this i have added 'sharedscripts' parameter as below and now i am avoiding duplicates of error message
/home/attlas/
/home/attlas/
{
rotate 0
daily
missingok
copy
firstaction
endscript
}
and Now if i execute 'logrotate -f /etc/logrotate.
root@kosmos:
/home/attlas/
/home/attlas/
/home/attlas/
/home/attlas/
/home/attlas/
/home/attlas/
error: error opening /home/attlas/
could you please suggest how to avoid this error