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): ...@@ -65,6 +65,7 @@ class Part(GenericBaseRecipe):
'dateext', 'dateext',
'rotate 3650', 'rotate 3650',
'compress', 'compress',
'delaycompress',
'notifempty', 'notifempty',
'sharedscripts', 'sharedscripts',
'create', '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