[packages/apache] Rel 2; add small sleep in logrotate that should help with 'gzip: stdin: file size changed while zipp
arekm
arekm at pld-linux.org
Sat Jul 4 10:20:40 CEST 2026
commit c7a8566bd837256ed0c2aabb513be8d76a39b196
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Jul 4 10:19:50 2026 +0200
Rel 2; add small sleep in logrotate that should help with 'gzip: stdin: file size changed while zipping'
apache.logrotate | 3 +++
apache.spec | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/apache.spec b/apache.spec
index 651247f..fa9497a 100644
--- a/apache.spec
+++ b/apache.spec
@@ -35,7 +35,7 @@ Summary(ru.UTF-8): Самый популярный веб-сервер
Summary(tr.UTF-8): Lider WWW tarayıcı
Name: apache
Version: 2.4.68
-Release: 1
+Release: 2
License: Apache v2.0
Group: Networking/Daemons/HTTP
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
diff --git a/apache.logrotate b/apache.logrotate
index 2d05b37..c50d94b 100644
--- a/apache.logrotate
+++ b/apache.logrotate
@@ -14,5 +14,8 @@
else
/sbin/service httpd flush-logs > /dev/null
fi
+ # let old children drain and release the moved logs before compression
+ # (async graceful reload; else gzip races the still-open fd)
+ sleep 180
endscript
}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/apache.git/commitdiff/c7a8566bd837256ed0c2aabb513be8d76a39b196
More information about the pld-cvs-commit
mailing list