From owner-freebsd-questions Mon Mar 4 11:31:36 2002 Delivered-To: freebsd-questions@freebsd.org Received: from yertle.kciLink.com (yertle.kcilink.com [216.194.193.105]) by hub.freebsd.org (Postfix) with ESMTP id 1C17537B430 for ; Mon, 4 Mar 2002 11:30:50 -0800 (PST) Received: from onceler.kciLink.com (onceler.kciLink.com [216.194.193.106]) by yertle.kciLink.com (Postfix) with ESMTP id B9E8B217BB for ; Mon, 4 Mar 2002 14:30:49 -0500 (EST) Received: (from khera@localhost) by onceler.kciLink.com (8.11.6/8.11.6) id g24JUn317037; Mon, 4 Mar 2002 14:30:49 -0500 (EST) (envelope-from khera) Date: Mon, 4 Mar 2002 14:30:49 -0500 (EST) Message-Id: <200203041930.g24JUn317037@onceler.kciLink.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: Vivek Khera To: freebsd-questions@freebsd.org Subject: Re: newsyslog/rotatelog Newsgroups: ml.freebsd.questions References: <001301c1c30e$d4006a40$faa0b542@noc> <20020304162808.B74621@grimoire.chen.org.nz> X-Trace: lorax.kciLink.com 1015268532 75697 216.194.193.106 (4 Mar 2002 19:02:12 GMT) X-Complaints-To: daemon@kciLink.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >>>>> "JC" == Jonathan Chen writes: JC> It is possible to use newsyslog for what you're doing, have something JC> like: JC> /var/log/httpd-access.log 644 5 * $W6D0 Z JC> /var/log/httpd-error.log 644 5 * $W6D0 Z /var/run/http.pid JC> You only need the http.pid entry on the last line so that newsyslog JC> will only send the HUP once to apache once the logs have been rotated. Where is this documented in newsyslog? I see no guarantee that the order of the file is honored for programs that write multiple log files like Apache does. Also, does newsyslog compress after sending the signal or before? That is not documented, either, in the man page. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D. Khera Communications, Inc. Internet: khera@kciLink.com Rockville, MD +1-240-453-8497 AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message