[squid-users] Squid 3.5.13 -k rotate does not honor store_id_children

Veiko Kukk vkukk at xvidservices.com
Tue Feb 2 13:54:56 UTC 2016


Hi,

I have squid 3.5.13 using configuration like this:

# logfiles
access_log /var/log/squid/${service_name}_access.log
cache_log /var/log/squid/${service_name}_cache.log
# do not rotate logs, let logrotate do that
logfile_rotate 0
store_id_program /usr/lib64/squid/storeid_file_rewrite 
/var/spool/squid/store_id_db
store_id_children 20 startup=2

There are several squid instances running on same server, so logrotate 
postrotate script is specifying instance and configuration file:
'/usr/sbin/squid -nsquid0 -f /etc/squid/squid0.conf -k rotate 2>/dev/null'

The problem is that after rotation, only one store id program children 
is left alive.

 From the squid0_cache.log:
2016/02/02 13:45:30| Set Current Directory to /var/spool/squid
2016/02/02 13:45:30 kid1| storeDirWriteCleanLogs: Starting...
2016/02/02 13:45:30 kid1|   Finished.  Wrote 401 entries.
2016/02/02 13:45:30 kid1|   Took 0.00 seconds (1610441.77 entries/sec).
2016/02/02 13:45:30 kid1| logfileRotate: 
stdio:/var/log/squid/squid0_access.log
2016/02/02 13:45:30 kid1| Rotate log file 
stdio:/var/log/squid/squid0_access.log
2016/02/02 13:45:30 kid1| helperOpenServers: Starting 1/20 
'storeid_file_rewrite' processes

And i can confirm that only single store id program proccess is running 
per squid instance.
Why does it start only one? May it be that some other configuration file 
lines are also ignored?

Best regards,
Veiko


More information about the squid-users mailing list