Re: montly log rotation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 
> 

-- 
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux