RE: problems rotating logs

From: Gagliardi Sebastián <sg@dont-contact.us>
Date: Tue, 20 Jul 1999 11:46:39 -0300

I run
        kill -USR1 `cat /usr/local/squid/logs/squid.pid`
as root and as the user id that squid is running but I don´t work.
Note that in the file cache.log are the following lines although the rotate
don´t really work.

1999/07/20 11:34:53| storeDirWriteCleanLogs: Starting...
1999/07/20 11:34:56| 65536 entries written so far.
1999/07/20 11:34:56| Finished. Wrote 121536 entries.
1999/07/20 11:34:56| Took 3 seconds (40512.0 entries/sec).
1999/07/20 11:34:56| accessLogRotate: Rotating

Do you suggest another solution?

Bye

Sebastian
sg@infoplus.com.ar

> -----Mensaje original-----
> De: Alvin Lim [SMTP:alvinlim@starnet.gov.sg]
> Enviado el: Monday, July 19, 1999 10:15 PM
> Para: squid-users@ircache.net
> Asunto: Re: problems rotating logs
>
> 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 Tue Jul 20 1999 - 08:58:37 MDT

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