From owner-freebsd-questions Sun Dec 31 22:32:46 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 31 22:32:45 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from grumpy.dyndns.org (user-24-214-56-41.knology.net [24.214.56.41]) by hub.freebsd.org (Postfix) with ESMTP id 71DDA37B400 for ; Sun, 31 Dec 2000 22:32:44 -0800 (PST) Received: (from dkelly@localhost) by grumpy.dyndns.org (8.11.1/8.11.1) id f016WLq00407; Mon, 1 Jan 2001 00:32:21 -0600 (CST) (envelope-from dkelly) Date: Mon, 1 Jan 2001 00:32:21 -0600 From: David Kelly To: Ying-Chieh Liao Cc: Jorge Biquez , freebsd-questions@FreeBSD.ORG Subject: Re: Newsyslog for rotating APACHE logs Message-ID: <20010101003221.A385@grumpy.dyndns.org> References: <5.0.2.1.2.20001231153034.01c780c0@intranet.com.mx> <20010101133852.A79689@terry.dorm8.nctu.edu.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010101133852.A79689@terry.dorm8.nctu.edu.tw>; from ijliao@csie.nctu.edu.tw on Mon, Jan 01, 2001 at 01:38:52PM +0800 Sender: dkelly@grumpy.dyndns.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jan 01, 2001 at 01:38:52PM +0800, Ying-Chieh Liao wrote: > > why not use > > newsyslog.conf: > > /usr/home/sites/logsite01txt 664 9 * 1503 B /path/to/httpd.pid > > and you dont have to add "killall -HUP httpd" in your crontab The original posting said the rotation wasn't working at all. I think that was/is due to the 1503 in the line above telling newsyslog to rotate only when the file is 1503 hours old, which is not the same as "rotate at 1503 every day". The standard path to httpd.pid is /var/run/httpd.pid. But considering the system appears to be running multiple virtual sites, no telling how many different httpds are running. -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message