On Wed, 23 Feb 2005, Covington, Chris wrote:
So, um, this prerotate thing you do - you're copying the log
file before it is static? You realize that you may not get the
full log file that way, right?
No I didn't. What do you suggest?
Find out how to determine what the name of the rolled
the solution is to add this line to your apache logrotate
config file:
copytruncate
Thanks Russ! It works poifectly now.
---
Chris Covington
IT
Plus One Health Management
75 Maiden Lane Suite 801
NY, NY 10038
646-312-6269
http://www.plusoneactive.com
--
gentoo-user@gentoo.org mailing
Instead of using that kill line in postrotate (which, based
upon a perusal of the apache2 and apache2ctl manpages, appears
to be deprecated), invoke /etc/init.d/apache2 restart.
Editing /etc/conf.d/apache2 may do nothing if you're working
directly under the covers as you are above.
On Wed, 23 Feb 2005, Covington, Chris wrote:
So, um, this prerotate thing you do - you're copying the log
file before it is static? You realize that you may not get the
full log file that way, right?
No I didn't. What do you suggest?
All this talk about log rotation in Apache, I just
Covington, Chris wrote:
Hi all,
Whenever I do a logrotate, it seems my apache2 stops logging though
there are new log files created but with 0 size. I'm using syslog-ng if
it matters.
If I manually do a /etc/init.d/apache2 restart the logging resumes.
What can I do?
I had this problem. I think
Hi all,
Whenever I do a logrotate, it seems my apache2 stops logging though
there are new log files created but with 0 size. I'm using syslog-ng if
it matters.
I have the following logrotate configuration for apache2 (the prerotate
scp works without prompting because I've exchanged keys):