From owner-freebsd-questions@FreeBSD.ORG Tue Oct 7 06:20:10 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 482C816A4BF for ; Tue, 7 Oct 2003 06:20:10 -0700 (PDT) Received: from mail.wbtsystems.com (onyx.dublin.wbtsystems.com [193.120.231.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id B23DF44005 for ; Tue, 7 Oct 2003 06:20:07 -0700 (PDT) (envelope-from barry.byrne@wbtsystems.com) Received: from spiral ([193.120.231.190]) (authenticated bits=0) by mail.wbtsystems.com (8.12.10/8.12.10) with ESMTP id h97DK4QQ013255; Tue, 7 Oct 2003 14:20:04 +0100 (IST) From: "Barry Byrne" To: "Jason Stewart" , "Free BSD Questions list" Date: Tue, 7 Oct 2003 14:20:04 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal In-Reply-To: <3F82BA3F.3040201@rtl.org> X-WBT-Authenticated-User: bb X-Scanned-By: MIMEDefang 2.37 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 13:20:10 -0000 Jason: I don't use newsyslog to rotate the squid logs but do the following: Specify the number of logfiles to keep in the squid.conf file: logfile_rotate 8 Tell squid to do rotate the logs with the command: /usr/local/squid/sbin/squid -k rotate You could do this in a short cron job. - Barry > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Jason Stewart > Sent: 07 October 2003 14:06 > To: Free BSD Questions list > Subject: Squid and newsyslog > > > 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 > (ditto, but for cache.log also) > > I have the pid file, the mode, user, and group. The new log is created > just fine with the correct ownership and permissions and the old one is > trimmed, but squid does not actually restart. The new logfile does not > get appended to. > > For now, I have the newsyslog entry commented out and I'm rotating the > log by hand, but sometime I'd like to get it working automatically. > > For some reason, newsyslog and squid aren't working well together. > > Any ideas? > > Thanks, > Jason Stewart > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"