httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fredk2 <fre...@gmail.com>
Subject Re: [users@httpd] montly log rotation
Date Wed, 25 Feb 2009 21:32:26 GMT

Hi,

I am not sure at what version it started (1.2.18?) but you can use the pipe 
| rotatelog (http://httpd.apache.org/docs/2.2/programs/rotatelogs.html) eg.
daily rotation:

JkLogFile "|/usr/apache2/bin/rotatelogs -l /usr/myweb/logs/mod_jk_%Y%m%d.log
86400"

which does not involve any SIG... however these rotatlog processes will run
with the same user that you start apache with eg. root.

Rgds- FredK


Bill Davidson-6 wrote:
> 
> André Warnier wrote:
>> Under Linux, there is also a utility called "logrotate" (a separate 
>> program which will run from time to time under cron, and rotate a choice 
>> of logfiles, dictated by its configuration files).
>> We use it on all our Apache2 sites, works very nicely.
> 
> I've been looking into this for httpd that is in front of Tomcat via
> mod_jk.  One thing that concerns me is that in order to get httpd to start
> using the new log, you need to send a SIGHUP signal to the httpd process.
> That worries me in terms of sessions since httpd kills its child processes
> and rereads its configuration files as well as reopening log files.
> Will this affect currently active sessions?
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/montly-log-rotation-tp20620199p22212307.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message