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:

NAME=squid2
DAEMON=/usr/sbin/squid
LIB=/usr/lib/squid
PIDFILE=/var/run/$name.pid
SQUID_ARGS="-D -sYC"

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!

Regards,

nry

_________________________________________________________________
Find a cheaper internet access deal - choose one to suit you. http://www.msn.co.uk/internetaccess




Reply via email to