From c9cf025fadfe043f0f2f679e10d1207d8a158bb6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:01:31 +0200 Subject: Adding debian version 2.4.57-2. Signed-off-by: Daniel Baumann --- debian/apache2.logrotate | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 debian/apache2.logrotate (limited to 'debian/apache2.logrotate') diff --git a/debian/apache2.logrotate b/debian/apache2.logrotate new file mode 100644 index 0000000..f8df022 --- /dev/null +++ b/debian/apache2.logrotate @@ -0,0 +1,20 @@ +/var/log/apache2/*.log { + daily + missingok + rotate 14 + compress + delaycompress + notifempty + create 640 root adm + sharedscripts + prerotate + if [ -d /etc/logrotate.d/httpd-prerotate ]; then + run-parts /etc/logrotate.d/httpd-prerotate + fi + endscript + postrotate + if pgrep -f ^/usr/sbin/apache2 > /dev/null; then + invoke-rc.d apache2 reload 2>&1 | logger -t apache2.logrotate + fi + endscript +} -- cgit v1.2.3