This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
обработка_лог_файлов_сервера_squid [2014/09/26 15:49] val [FreeBSD] |
обработка_лог_файлов_сервера_squid [2014/09/26 16:05] val [FreeBSD] |
||
---|---|---|---|
Line 24: | Line 24: | ||
</code><code> | </code><code> | ||
[gate:~] # squid -k rotate | [gate:~] # squid -k rotate | ||
+ | |||
+ | [gate:~] # setenv LANG ru_RU.KOI8-R | ||
[gate:~] # sarg | [gate:~] # sarg | ||
Line 38: | Line 40: | ||
/usr/bin/find /usr/local/www/data/sarg/ -maxdepth 1 -mtime +60 -type d -name '*-*' -exec rm -r {} \; | /usr/bin/find /usr/local/www/data/sarg/ -maxdepth 1 -mtime +60 -type d -name '*-*' -exec rm -r {} \; | ||
/usr/local/sbin/squid -k rotate | /usr/local/sbin/squid -k rotate | ||
+ | export LANG=ru_RU.KOI8-R | ||
/usr/local/bin/sarg | /usr/local/bin/sarg | ||
</code><code> | </code><code> | ||
Line 51: | Line 54: | ||
/usr/bin/find /usr/local/www/data/sarg/ -maxdepth 1 -mtime +60 -type d -name '*-*' -delete | /usr/bin/find /usr/local/www/data/sarg/ -maxdepth 1 -mtime +60 -type d -name '*-*' -delete | ||
/usr/local/sbin/squid -k rotate | /usr/local/sbin/squid -k rotate | ||
+ | export LANG=ru_RU.KOI8-R | ||
/usr/local/bin/sarg | /usr/local/bin/sarg | ||
</code><code> | </code><code> |