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.
--
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
--
Bookmark/Search this post with:
Squid strange logrotate scrip.
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.
--
greg,
Novell's Directory Services is a competitive product to Microsoft's
Active Directory in much the same way that the Saturn V is a competitive
product to those dinky little model rockets that kids light off down at
the playfield. -- Thane Walkup
--
Squid strange logrotate scrip.
On 3/1/07, Greg Folkert 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.
--
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
--
Squid strange logrotate scrip.
On 3/1/07, Guillermo Garron wrote:
> On 3/1/07, Greg Folkert 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
--