logrotate(8) and copytruncate as default
P J P
pj.pandit at yahoo.co.in
Thu Jun 27 11:54:03 UTC 2013
Recently I've seen multiple issues related to new file creation by logrotate(8).
A race condition described by , between creation of a new file and setting
file permissions and acl(5). Another I came across in ndjbdns , as it continued
to write to an open, but rotated log file.
Wouldn't it be better to make 'copytruncate' as default behaviour for logrotate(8)?
Instead of renaming an old file and creating a new one.
More information about the devel