Commit 2e9f4c82 authored by Julien Muchembled's avatar Julien Muchembled

logrotate: delay compression of rotated files

Most of the time, the logging process keeps the log open, accesses it via
a file descriptor and gets notified of log rotation via a signal. Because
logrotate does not wait that the log is close (could it do it with inotify ?),
there can be race conditions between the compression and events that are logged
at the same time.

In the case of NEO, logs are SQLite DB. Rotation is also notified via a signal
and VACUUM is sometimes called to reduce its size.
parent 2be953f9
......@@ -65,6 +65,7 @@ class Part(GenericBaseRecipe):
'dateext',
'rotate 3650',
'compress',
'delaycompress',
'notifempty',
'sharedscripts',
'create',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment