Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Mar 2004 17:31:34 +0300
From:      Odhiambo Washington <wash@wananchi.com>
To:        fbsd_user <fbsd_user@a1poweruser.com>
Cc:        "freebsd-questions@FreeBSD. ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: apache log files rotation
Message-ID:  <20040303143134.GC92432@ns2.wananchi.com>
In-Reply-To: <MIEPLLIBMLEEABPDBIEGIEOAFNAA.fbsd_user@a1poweruser.com>
References:  <MIEPLLIBMLEEABPDBIEGIEOAFNAA.fbsd_user@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* fbsd_user <fbsd_user@a1poweruser.com> [20040303 17:14]: wrote:
> Can apache logs be rotated by /etc/newsyslog.conf?
> If not, how is it normally done?

You may need to send apache SIGUSR1 (signal 30) to tell it to reopen its
logfiles. I do this with squid but haven't tried with apache..
There is no harm in trying, you know? It wouldn't blow your box ;)


/path/to/logfile www:www  644 7  * @T00 J /path/to/apache/pid 30



-Wash

http://www.netmeister.org/news/learn2quote.html

--
+======================================================================+
    |\      _,,,---,,_     | Odhiambo Washington    <wash@wananchi.com>
Zzz /,`.-'`'    -.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_)     | GSM: +254 722 743223   +254 733 744121
+======================================================================+
One of the lessons of history is that nothing is often a good thing to
do and always a clever thing to say.
		-- Will Durant



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