[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Squid strange logrotate scrip.



On 3/1/07, Guillermo Garron <guillermo.fedora@gmail.com> wrote:
On 3/1/07, Greg Folkert <greg@gregfolkert.net> wrote:
> On Thu, 2007-03-01 at 00:40 -0400, Guillermo Garron wrote:
> > Hi,
> >
> > My etch has this squid logrotate script.
> >
> > ********************
> > #
> > #       Logrotate fragment for squid.
> > #
> > /var/log/squid/*.log {
> >         daily
> >         compress
> >         delaycompress
> >         rotate 10
> >         missingok
> >         nocreate
> >         sharedscripts
> >         prerotate
> >                 test ! -x /usr/sbin/sarg-maint || /usr/sbin/sarg-maint
> >         endscript
> >         postrotate
> >                 test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate
> >         endscript
> > }
> > ***********************
> >
> > but the program sarg-maint did not exist on my server, and the
> > apt-get install sarg-maint did not worked.
> >
> > any advice?
> > thanks a lot.
>
> It doesn't matter. the test statement tries to see if the executable is
> there. If it is... it executes it.  If it isn't, then it is ignored.
> Nothing else.

thank you very much..

I still do not know why it passed more than a week since i installed
squid, and the log files did not rotate.

i will continue checking that.
thanks for your explanation.
Now,

using the command
squid -k rotate

I forced the rotation of the files, and worked, I will wait another
week, and see what happen

regards,


--
Guillermo Garron
"Linux IS user friendly... It's just selective about who its friends are."
(Using FC6, CentOS4.4 and Ubuntu 6.06)
http://feeds.feedburner.com/go2linux
http://www.go2linux.org



Reply to: