Re: problems rotating logs

From: Alvin Lim <alvinlim@dont-contact.us>
Date: Tue, 20 Jul 1999 09:15:28 +0800

I found squid -k rotate not to work too well.
Alex is right in saying that the user you're running as does not have
permissions to send a signal to the squid process.

So , what you can do is

kill -USR1 `cat /usr/local/squid/logs/squid.pid`

. Run the above as root, or the user id which squid is running as.

Alex Rousskov wrote:
>
> On Sun, 18 Jul 1999, [iso-8859-1] Gagliardi Sebastián wrote:
>
> > When I start Linux manually, using RunCache or squid -sY the
> > rotation works fine (using squid -k rotate), but when I configure
> > squid to start automaticaly when Linux boot (using a script file
> > in the directory init.d) the squid works OK but the rotate don't work.
>
> Probably the user id that Squid starts with is different in these two
> cases. Consequently, Squid cannot write its .pid file, "squid -kr" cannot
> read .pid file, and/or "squid -kr" does not have permissions to send a
> signal to the master process.
>
> Alex.
Received on Mon Jul 19 1999 - 18:48:35 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:47:27 MST