Hello,

I have three versions of squid running on the same machine, two in
production and one for development.  The best way that I found was to
have three entirely separate compiles for each version where I actually
change the names of the squid executables, config files, directory
structures, pids, ports, etc.  Then I fire them off independently with
separate init.d scripts (I work under linux).

BTW, I call different redirectors with each 'version' of squid.

I guess it depends on circumstances. I originally thought of using seperate installs of Squid for each task, but we're working on a commercial product and really want to avoid the need to manage two packages for Squid instead of one.


The problem has been narrowed down to the second init.d script to start the second squid instance, as I can manually start each squid from the relevant conf file without error.

Thanks for the reply,

Regards,

nry


Murrah Boswell Systems Administrator Wild Apache Internet Services

Chris Wilcox wrote:
>
> Hi all,
>
> As far as I can tell, I have followed everything I'm supposed to have to
> make this work. I wish to run two instances of Squid on the same machine:
> Squid/2.4.STABLE6 on Debian Woody stable.
>
> I have squid.conf and squid2.conf with the relevant settings altered.
>
> Squid.conf listens on port 3128 on the external IP. I have not altered the
> PID file path for this one.
> Squid2.conf listens on port 8085 on 127.0.0.1 I have altered the PID file
> path to be /var/run/squid2.pid I have created a different cache directory
> etc, and specified these within the squid2.conf file, along with checkong
> relevant permissions on these directories.
>
> I have then copied the squid init.d script and called this squid2. I have
> altered squid2 to have a different name string, and altered all relevant
> entries within this script to point to the squid2 details eg cache directory
> etc. This squid2 script is set to use 'squid2.pid' as I've specified in
> squid2.conf
>
> Yet still, when I do 'squid2 start' it always returns 'Squid is already
> running! Process ID 213'
>
> I'm now lost. Am I missing something really obvious here? I've been trying
> to get this going for a good few weeks now!
>
> Major thanks for any advice and suggestions!
>
> Regards,
>
> nry
>
> _________________________________________________________________
> Use MSN Messenger to send music and pics to your friends
> http://www.msn.co.uk/messenger

_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger




Reply via email to