Bug #520445: Silence logrotate when Squid is not running
This commit is contained in:
parent
29c2f1e14a
commit
43af784ad6
@ -7,7 +7,8 @@
|
|||||||
sharedscripts
|
sharedscripts
|
||||||
postrotate
|
postrotate
|
||||||
# Asks squid to reopen its logs. (log_rotate 0 is set in squid.conf)
|
# 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
|
# Wait a little to allow Squid to catch up before the logs is compressed
|
||||||
sleep 1
|
sleep 1
|
||||||
endscript
|
endscript
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: squid
|
Name: squid
|
||||||
Version: 3.0.STABLE18
|
Version: 3.0.STABLE18
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: The Squid proxy caching server
|
Summary: The Squid proxy caching server
|
||||||
Epoch: 7
|
Epoch: 7
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
@ -341,6 +341,9 @@ fi
|
|||||||
chgrp squid /var/cache/samba/winbindd_privileged >/dev/null 2>&1 || :
|
chgrp squid /var/cache/samba/winbindd_privileged >/dev/null 2>&1 || :
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 7:3.0.STABLE18-2
|
||||||
- rebuilt with new openssl
|
- rebuilt with new openssl
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user