logrotate(8) and copytruncate as default
mzerqung at 0pointer.de
Sat Jun 29 00:55:17 UTC 2013
On Sat, 29.06.13 04:46, P J P (pj.pandit at yahoo.co.in) wrote:
> ----- Original Message -----
> > From: Lennart Poettering <mzerqung at 0pointer.de>
> > Subject: Re: logrotate(8) and copytruncate as default
> > journald is the only writer, it doesn't need locking. The changes it
> > does are done in a way so that concurrent readers will either see the
> > changes or not, but never half-written changes.
> I see. How is that done? Does journald also renames the current file and
> creates a new one and continues writing to that new file??
It will create a new file and rename the old one.
Lennart Poettering - Red Hat, Inc.
More information about the devel