Hallo! Du (John E. Kozitzki) hast geschrieben:
>I have seen alot of discussion about rotating logfiles lately.
>One command seems to come up:
>
>kill -USR1 `cat /usr/local/squid/logs/squid.pid`
>
>What does this command actually do?
>I have run it on our squid and the results were as follows:
>
>1. Created a file in the cache subdirectory called log-last-clean with 0
>bytes.
>2. Added lines to cache.log stating that squid is rotating log files.
3. If you configure Squid appropriate (look for rotate) it will
rotate your access.log, cache.log to access.log.0 cache.log.0
4. it writes the file in the cache subdirectory called log. In
normal work squid will append new objects with a new line to the
'log'-file, so it will grow and grow. Objects which are already
removed from the cache are kept in this file.
On SIGUSR1 this file is written new with the current
memory-metadata.
Cord
-- Cord Beermann http://www.Wunder-Nett.org/~cord/ cord@Wunder-Nett.org IRC: Cord@Wunder-Nett Looking for a job. Skills: Proxy, WWW, UNIX (Linux, Solaris), (Inter)net, perlReceived on Fri Jul 04 1997 - 02:21:10 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:40 MST