[squid-users] Running two instances of Squid from one binary

From: Chris Wilcox <not_rich_yet@dont-contact.us>
Date: Sun, 05 Oct 2003 19:22:34 +0100

Hi all,

Our current project currently requires the use of two seperate squid
instances with a web filter in the middle. Clients would connect to Squid1
and be authorised then passed to the filter which would use Squid2 as the
cache. Squid1 would not cache, just log.

Rather than maintain our own squid package on top of the existing one for
our chosen distro (Debian) we're hoping to nake use of the ability to run
more than one instance of squid from the single binary. I could be wrong,
but I believe what I need to do is create a second squid conf file called eg
squid2.conf, and alter the relevant sections in this conf file to match the
needs of Squid2 eg log/cache dirs. port, IP etc. I believe I have done this
correctly. I then thought I could happily copy the existing squid init.d
script and alter it to start a second squid instance but it doesn't seem to
work. Squid1 works, the filter works, but adding squid2 stops it working.
The main lines I can see that need altered are those shown below:


There are also another couple of lines which I've altered which are to do
with config file paths etc. When I try to manually run this script it says
that squid is already started and lists the pid number. From the edits I've
listed above I'm not sure why this is happening as I've specified a
different NAME hence a different pid file etc.

Am I going in the right direction or have I missed something obvious (or
not!)? The Squid docs say this is possible but nothing I've found on the
web or the squid site has helped me get this working.

Major thanks for any replies!



Find a cheaper internet access deal - choose one to suit you.
Received on Sun Oct 05 2003 - 12:22:37 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:20:24 MST