Date: Tue, 7 Oct 2003 09:29:00 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Jason Stewart <jstewart@rtl.org> Cc: Free BSD Questions list <freebsd-questions@freebsd.org> Subject: Re: Squid and newsyslog Message-ID: <20031007142900.GC36117@dan.emsphone.com> In-Reply-To: <3F82BA3F.3040201@rtl.org> References: <3F82BA3F.3040201@rtl.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Oct 07), Jason Stewart said: > I'm having trouble rotating my squid access.log and cache.log with > newsyslog. > > Here is my entry in newsyslog.conf: > > /usr/local/squid/logs/access.log nobody.nogroup 644 7 * 168 Z /usr/local/squid/logs/squid.pid You need to send squid SIGUSR1 (signal 30) to tell it to reopen its logfiles. Here's my line: /usr/local/squid/logs/access.log nobody:wheel 644 7 40000 * ZB /var/run/squid.pid 30 The B flag tells newsyslog not to put a "logfile turned over" entry at the top of the file, since squid logs aren't in syslog format. -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031007142900.GC36117>