diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2015-01-09 10:50:59 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-01-09 15:01:01 +0100 |
commit | 565eb6fa43e74e2fbfff00dc29fdb20c5544a3d2 (patch) | |
tree | 4488e21f34162229d363f41a51171da381fdb819 | |
parent | ce6ba48c5a0723d9c8db6d960d2dfbcb6ffdd673 (diff) | |
download | sssd-565eb6fa43e74e2fbfff00dc29fdb20c5544a3d2.tar.gz sssd-565eb6fa43e74e2fbfff00dc29fdb20c5544a3d2.tar.xz sssd-565eb6fa43e74e2fbfff00dc29fdb20c5544a3d2.zip |
logrotate: Fix warning file size changed while zipping
Postpone compression of the previous log file to the next rotation cycle.
This only has effect when used in combination with compress. We need to use it
because we cannot tell sssd to close log files and thus sssd processes might
continue writing to the previous log file for some time.
Resolves:
https://fedorahosted.org/sssd/ticket/2547
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
-rw-r--r-- | src/examples/logrotate | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/examples/logrotate b/src/examples/logrotate index 9df721f2a..ecf0c6102 100644 --- a/src/examples/logrotate +++ b/src/examples/logrotate @@ -5,6 +5,7 @@ sharedscripts rotate 2 compress + delaycompress postrotate /bin/kill -HUP `cat /var/run/sssd.pid 2>/dev/null` 2> /dev/null || true endscript |