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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 | |
|
|