Re: [squid-users] squid.pid (squid-2.5.STABLE4)

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 8 Jan 2004 14:42:25 +0100 (CET)

On Thu, 8 Jan 2004, Oliver Zimmermann wrote:

> The daily "squid -k rotate" didn't work anymore with error
> "squid: ERROR: No running copy".

Most likely you have two different installations of Squid, and the "squid
-k rotate" is calling another version of Squid than you expect.

> I read in the FAQ, that possibly the squid.pid is missing - but that's
> not the case:
>
> ps ax|grep squid
> 25694 ? S 0:00 /usr/local/squid/sbin/squid -D -sYC -f
> /etc/squid.conf
> 25697 ? R 0:12 (squid) -D -sYC -f /etc/squid.conf
>
> ... and /var/run/squid.pid contents 25697
>
> Squid should use that file, because squid.conf has:
> #Default:
> # pid_filename /usr/local/squid/var/logs/squid.pid
> pid_filename /var/run/squid.pid
>
> With a softlink I could solve the problem:
> ln -s /var/run/squid.pid /usr/local/squid/var/logs/squid.pid

There is one important clue above. When you start Squid you specified that
/etc/squid.conf should be used as configuration file, but the "squid -k
rotate" did not specify which configuration file to use and will thus use
the default configuration file location for that Squid binary. This
configuration file most likely does not specify the same pid_filename.

Regards
Henrik
Received on Fri Jan 09 2004 - 04:33:24 MST

This archive was generated by hypermail pre-2.1.9 : Sun Feb 01 2004 - 12:00:05 MST