Andrei-Florian Staicu wrote:
>stai putin, ca am treaba aia.
>
>intrebarea mea este: pot sa pun
>
>    postrotate
>      /usr/sbin/squid -k rotate
>
>           /usr/local/sarg
>
>    endscript
>
>????????
>
>
>[EMAIL PROTECTED] wrote:
>
>  
>
>>Andrei-Florian Staicu wrote:
>>
>> 
>>
>>    
>>
>>>As vrea sa rulez SARG-ul dupa fiecare logrotate pentru Squid.
>>>
>>>Am gasit in /etc/logrotate.d/squid urmatoarele:
>>>
>>>/var/log/squid/access.log {
>>>  weekly
>>>  rotate 5
>>>  copytruncate
>>>  compress
>>>  notifempty
>>>  missingok
>>>}
>>>
>>>Daca inserez un "sarg" inainte de compress imi face treaba asta?
>>>
>>>
>>>
>>>
>>>   
>>>
>>>      
>>>
>>   postrotate
>>     /usr/sbin/squid -k rotate
>>   endscript
>>
>>cam asha cred ca se poate face... shi iese de genu ...
>>
>>/var/log/squid/store.log {
>>   weekly
>>   rotate 5
>>   copytruncate
>>   compress
>>   notifempty
>>   missingok
>># This script asks squid to rotate its logs on its own.
>># Restarting squid is a long process and it is not worth
>># doing it just to rotate logs
>>   postrotate
>>     /usr/sbin/squid -k rotate
>>   endscript
>>}
>>
>>
>>--- 
>>Detalii despre listele noastre de mail: http://www.lug.ro/
>>
>>
>> 
>>
>>    
>>
>
>  
>
intre postrotare shi endscript poti pune orice vrei tu cu calea absoluta 
deci DA poti pune cum vrei tu. Si in cel mai rau caz.. fa o configurare, 
shi testeaza... cu un interval de timp mult mai scurt :)



--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui