From owner-freebsd-questions@FreeBSD.ORG Tue Oct 7 07:29:02 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52BEF16A4B3 for ; Tue, 7 Oct 2003 07:29:02 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8162E43F93 for ; Tue, 7 Oct 2003 07:29:01 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h97ET0sg019849; Tue, 7 Oct 2003 09:29:00 -0500 (CDT) (envelope-from dan) Date: Tue, 7 Oct 2003 09:29:00 -0500 From: Dan Nelson To: Jason Stewart Message-ID: <20031007142900.GC36117@dan.emsphone.com> References: <3F82BA3F.3040201@rtl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F82BA3F.3040201@rtl.org> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: Free BSD Questions list Subject: Re: Squid and newsyslog X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2003 14:29:02 -0000 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