Search squid archive

squid -k rotate not working properly (workers > 1)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, I'm using latest 3.2 squid from daily build.

Im using this in squid.conf

cache_store_log daemon:/var/log/squid3/store.log
access_log daemon:/var/log/squid3/access.log squid
logfile_rotate 1
workers 2

But when i do a squid3 -k rotate, i can see one of two odd behaviors, which vary randomly.

1)
access.log.0 and store.log.0 are created
access.log and store.log are new files with 0 bytes

but squid keeps writing its logs in access.log.0 and store.log.0 instead of access.log and store.log. This last two remain always 0kbytes size.

2)
access.log.0 and store.log.0 are created
access.log and store.log are new files with 0 bytes

but squid keeps writing in both files access.log.0 and access.log, and the same goes to store.log.

So in both cases i do not have the expected logfile_rotate behavior.

My /var/log/squid/ is mounted on a small tmpfs, and thats why I want to rotate them shortly and frequently.

Is this a bug?
-k rotate is working with workers > 1?

squid -v
Squid Cache: Version 3.2.7-20130226-r11786
configure options: '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=${prefix}/lib/squid3-ssl' '--srcdir=.' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-silent-rules' '--datadir=/usr/share/squid3' '--sysconfdir=/etc/squid3' '--libdir=/usr/lib/squid3' '--libexecdir=/usr/lib/squid3' '--mandir=/usr/share/man' '--with-cppunit-basedir=/usr' '--enable-ssl' '--enable-ssl-crtd' '--enable-inline' '--enable-async-io=8' '--enable-storeio=ufs,aufs,diskd,rock' '--enable-removal-policies=lru,heap' '--enable-delay-pools' '--enable-cache-digests' '--enable-underscores' '--enable-icap-client' '--enable-follow-x-forwarded-for' '--enable-auth-basic' '--enable-auth-digest' '--enable-auth-ntlm' '--enable-auth-negotiate' '--enable-basic-auth-helpers=LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,DB,POP3,getpwnam,squid_radius_auth,multi-domain-NTLM' '--enable-ntlm-auth-helpers=smb_lm,' '--enable-digest-auth-helpers=ldap,password' '--enable-negotiate-auth-helpers=squid_kerb_auth' '--enable-external-acl-helpers=ip_user,ldap_group,session,unix_group,wbinfo_group' '--enable-arp-acl' '--enable-esi' '--disable-ipv6' '--disable-translation' '--with-logdir=/var/log/squid3' '--with-pidfile=/var/run/squid3.pid' '--with-filedescriptors=65536' '--with-large-files' '--with-default-user=proxy' '--enable-linux-netfilter' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall'







[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux