rotateing logs on demand / from cron

This is a discussion on rotateing logs on demand / from cron within the Apache Web Server forums, part of the Web Server and Related Forums category; Maybe I just reinvented the wheel, but I couldn't find an easy way to do this. All I wanted ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-02-2004
Richard Antony Burton
 
Posts: n/a
Default rotateing logs on demand / from cron

Maybe I just reinvented the wheel, but I couldn't find an easy way to do this.
All I wanted to do was rotate my apache logs at midnight Sunday, so I could have
weekly logs.

If it's of any use to anyone else I have put my patch here:
http://raburton.lunarpages.com/apache/rotatelogs/

Basically you can just send a signal (SIGUSR1 by default) to the running rotate
logs process to cause it to rotate. You can then call this once a week using
cron, or however & whenever you like.

Richard.


 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:29 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0