From owner-freebsd-questions Sun Mar 3 19:28:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from chen.org.nz (adsl-210.54.19.51.quicksilver.net.nz [210.54.19.51]) by hub.freebsd.org (Postfix) with ESMTP id A71C037B402 for ; Sun, 3 Mar 2002 19:28:15 -0800 (PST) Received: (from jonc@localhost) by chen.org.nz (8.11.6/8.11.6) id g243S8V74710; Mon, 4 Mar 2002 16:28:08 +1300 (NZDT) (envelope-from jonc) Date: Mon, 4 Mar 2002 16:28:08 +1300 From: Jonathan Chen To: alexus Cc: freebsd-questions@FreeBSD.ORG Subject: Re: newsyslog/rotatelog Message-ID: <20020304162808.B74621@grimoire.chen.org.nz> References: <001301c1c30e$d4006a40$faa0b542@noc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <001301c1c30e$d4006a40$faa0b542@noc>; from ml@db.nexgen.com on Sun, Mar 03, 2002 at 06:54:58PM -0500 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 On Sun, Mar 03, 2002 at 06:54:58PM -0500, alexus wrote: [...] > i was thinkin to use newsyslog for that.. is it good idea? or there are some > other tools for that? > can i put "include /etc/apache-log-rotate.conf" into newsyslog.conf so i > dont have to edit it every time? It is possible to use newsyslog for what you're doing, have something like: /var/log/httpd-access.log 644 5 * $W6D0 Z /var/log/httpd-error.log 644 5 * $W6D0 Z /var/run/http.pid You only need the http.pid entry on the last line so that newsyslog will only send the HUP once to apache once the logs have been rotated. -- Jonathan Chen ---------------------------------------------------------------------- Do not take life too seriously. You will never get out of it alive. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message