Apologies for having top-posted before.
On Thu, Jul 17, 2014 at 8:26 AM, Ulrich Windl < [email protected] <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote: > >>> Marco Pizzoli <[email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>> schrieb am > 16.07.2014 um 16:42 in > Nachricht > <camrrtwsn1hihgbem-e+zyfjh4o2cupfivd4e0cqfcvrgske...@mail.gmail.com > <javascript:_e(%7B%7D,'cvml','camrrtwsn1hihgbem-e%[email protected]');> > >: > > Hi Ulrich, > > yes but leveraging the "copytruncate" option of logrotate. So you don't > > have to worry about the open state of the file. > > Hi! > > Thanks for the answer. > If one process has the file open for appending and another process > truncates the file, won't the other process create a sparse file then > (continuing to append at ist previous position? > > Regards, > Ulrich > > > > > HTH > > Marco > > > > > > On Wed, Jul 16, 2014 at 3:54 PM, Ulrich Windl < > > [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>> > wrote: > > > >> Hi! > >> > >> The manual does not say whether the file auditlog uses is kept open all > >> the time, or is opened whenever a record is added. The difference is > >> important if you want to use logrotate to rotate the auditlog file. I > don't > >> want to restart slapd when rotating the logs. That would be overkill. > >> Has anybody done this with success? > >> > >> Regards, > >> Ulrich > >> > >> > >> > >> > > > > Long story short: it works for this specific use case.
