Bug #520445: Silence logrotate when Squid is not running

This commit is contained in:
Henrik Nordström 2009-08-31 18:36:45 +00:00
parent 29c2f1e14a
commit 43af784ad6
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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 <henrik@henriknordstrom.net> - 3.0.STABLE18-3
- Bug #520445 silence logrotate when Squid is not running
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 7:3.0.STABLE18-2
- rebuilt with new openssl