Re: [squid-users] Highlander squid (there can only be one?!)

From: Henrik Nordstrom <[email protected]>
Date: Tue, 28 Oct 2003 00:58:42 +0100 (CET)

On Mon, 27 Oct 2003, Bruno Marcondes wrote:

> Hi everyone !
> I want to run to squid process on the same machine (as an httpd
> accellerator) using diferrent confs , thus cache_dirs,logs,pid file ,etc ...
> I hacked RunAccel run a different squid command (with an alteranate config
> file), but when the second squid starts it dies with the message :
>
> 2003/10/23 19:42:50| Squid is already running! Process ID 25218
>
> Any ideas ?
> Does anyone already set something like that ?

Yes.

To run two Squids on the same machine the easiest way is to install two
Squids using different prefix, then configure their respective squid.conf
to use different ports for HTTP (and ICP and/or SNMP if enabled)

Alternatively you can use the same binary by specifying different
configuration files on the command line, but then you need to remember to
set different paths to everying in the squid.conf

  * pid_file_names
  * all kinds of log files
  * cache
  * etc..

Regards
Henrik
Received on Mon Oct 27 2003 - 16:58:52 MST

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