From 43af784ad690e0a14bb4fc9f51694a3811f1c485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Nordstr=C3=B6m?= Date: Mon, 31 Aug 2009 18:36:45 +0000 Subject: [PATCH] Bug #520445: Silence logrotate when Squid is not running --- squid.logrotate | 3 ++- squid.spec | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/squid.logrotate b/squid.logrotate index 598f544..4af2d2d 100644 --- a/squid.logrotate +++ b/squid.logrotate @@ -7,7 +7,8 @@ sharedscripts postrotate # Asks squid to reopen its logs. (log_rotate 0 is set in squid.conf) - /usr/sbin/squid -k rotate + # errors redirected to make it silent if squid is not running + /usr/sbin/squid -k rotate 2>/dev/null # Wait a little to allow Squid to catch up before the logs is compressed sleep 1 endscript diff --git a/squid.spec b/squid.spec index 73e5bd5..690be0c 100644 --- a/squid.spec +++ b/squid.spec @@ -4,7 +4,7 @@ Name: squid Version: 3.0.STABLE18 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The Squid proxy caching server Epoch: 7 License: GPLv2+ @@ -341,6 +341,9 @@ fi chgrp squid /var/cache/samba/winbindd_privileged >/dev/null 2>&1 || : %changelog +* Mon Aug 31 2009 Henrik Nordstrom - 3.0.STABLE18-3 +- Bug #520445 silence logrotate when Squid is not running + * Fri Aug 21 2009 Tomas Mraz - 7:3.0.STABLE18-2 - rebuilt with new openssl