Re: 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, greg@gregfolkert.net
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
Reply to: