From owner-freebsd-questions@FreeBSD.ORG Fri Nov 3 20:03:08 2006 Return-Path: X-Original-To: questions@freebsd.org 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 0D93B16A415 for ; Fri, 3 Nov 2006 20:03:08 +0000 (UTC) (envelope-from swordsman@csjewell.fastmail.us) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0737443D6A for ; Fri, 3 Nov 2006 20:03:06 +0000 (GMT) (envelope-from swordsman@csjewell.fastmail.us) Received: from db2.internal (db2.internal [10.202.2.12]) by frontend1.messagingengine.com (Postfix) with ESMTP id 4FD87DBFE7D for ; Fri, 3 Nov 2006 15:03:05 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by db2.internal (MEProxy); Fri, 03 Nov 2006 15:03:07 -0500 X-Sasl-enc: iJNXZoY2B3QC/Ju2kBCGHm1tOwejQ0JNiE1EfPEt/AH1 1162584186 Received: from [192.168.55.4] (230M12.oasis.mediatti.net [210.233.205.230]) by www.fastmail.fm (Postfix) with ESMTP id 6049E1A08E for ; Fri, 3 Nov 2006 15:03:05 -0500 (EST) Date: Sat, 4 Nov 2006 05:02:57 +0900 (JST) From: Curtis Jewell To: questions@freebsd.org Message-ID: <20061104043357.S4041@lap.curtisjewell.boldlygoingnowhere.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: Apache log rotation question... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Nov 2006 20:03:08 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm wondering if I can safely use newsyslog with a newsyslog.conf with these lines in it: /var/log/httpd/access_log/* 644 1 * $W0D0 G /var/log/httpd/error_log/* 644 1 * $W0D0 G /var/log/httpd/ssl_request.log 644 1 * $W0D0 /var/log/httpd/error.log 644 1 * $W0D0 # After this point should be one line... /var/log/httpd/access.log 644 1 * $W0D0 - /var/run/httpd.pid 30 or if not, what should I do instead? (I have 4 separate vhosts that keep their access logs in the first 2 directories) For the record, I want weekly rotation on Sundays at midnight (I assume JST, since I have my time set to local time, which is JST [GMT+9, no DST]), keeping 1 log, (the way I read the fine manuals, I'll have to have a cron job bzip2 it up later and move it aside if I want to keep more and/or compress them) permissions 644 with the owner being root:wheel, no size check, and the last part of the last line should send a SIGUSR1 (30) signal to Apache, which should do the equivalent of a 'apachectl -k graceful' per http://httpd.apache.org/docs/2.2/stopping.html. My question really is, does newsyslog send the signal at the right time [after the rotation is done, per http://httpd.apache.org/docs/2.2/logs.html#rotation] and does it do the lines in order???) - --Curtis - -- Curtis Jewell swordsman@csjewell.fastmail.us "Killed enough? ... Yes, Your Highness, I think we all have." --John Patrick Ryan (from 'The Sum Of All Fears', Tom Clancy) [I use Pine, which deliberately does not display colors and pictures in HTML mail] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFS6ByvCi+150VKIMRAs6PAKDOOvnARxXKUTY5dvNrob3gl9+aZACdG+P+ Uz0GrVe1p5MNuRPwiTbBXxY= =lTB2 -----END PGP SIGNATURE-----