Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Mar 2002 16:28:08 +1300
From:      Jonathan Chen <jonc@chen.org.nz>
To:        alexus <ml@db.nexgen.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: newsyslog/rotatelog
Message-ID:  <20020304162808.B74621@grimoire.chen.org.nz>
In-Reply-To: <001301c1c30e$d4006a40$faa0b542@noc>; from ml@db.nexgen.com on Sun, Mar 03, 2002 at 06:54:58PM -0500
References:  <001301c1c30e$d4006a40$faa0b542@noc>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <jonc@chen.org.nz>
----------------------------------------------------------------------
                                       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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020304162808.B74621>