The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: ModAutorotate  (Read 4453 times)

kmradke

  • Newbie
  • *
  • Offline Offline
  • Posts: 27
ModAutorotate
« on: January 28, 2013, 07:10:10 PM »

Anyone try http://www.poptart.org/bin/view/Poptart/ModAutorotate ?

It looks to have a hardocoded unix path to gzip.  Haven't tried compiling it yet.

cronolog has served me well but those piped processes can add up.  I'm not using mod_log_rotate because I need to rotate all logs...
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 827
Re: ModAutorotate
« Reply #1 on: January 28, 2013, 07:45:20 PM »

Yes, I tried compiling mod_autorotate early last year. It was a mess to clean up but there was something in it that I got stuck on and couldn't get any further. I too liked the sound of it and it handled the error log as well (unlike mod_log_rotate). I may try compiling it again in the future.
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 827
Re: ModAutorotate
« Reply #2 on: January 28, 2013, 09:38:42 PM »

But, I think I'll give it another go. Stay tuned.
Logged

kmradke

  • Newbie
  • *
  • Offline Offline
  • Posts: 27
Re: ModAutorotate
« Reply #3 on: January 28, 2013, 09:42:24 PM »

Yeah, a lot of clean up of the code is needed.  It is also using Unix specific commands to restart apache (using signals).  Not sure if the httpd libs have any nice way to trigger that.
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 827
Re: ModAutorotate
« Reply #4 on: January 28, 2013, 11:31:27 PM »

mpm_winnt has a way of signaling the parent process, so going to give it a try. I have it compiled and loaded on 2.4 here on this laptop. Module is set for Hourly and I'm waiting for the hour-offset to pass and see what happens. Then on to test compression, it too uses a very unixy setpriority which I've just bypassed for now.

Looks like we need a way to deal with / vs. \
[Mon Jan 28 14:28:10.662800 2013] [:error] [pid 4088:tid 660] (OS 123)The filename, directory name, or volume label syntax is incorrect.  : mod_autorotate: renaming C:/Apache24/logs/script-error.log to C:/Apache24/logs/script-error.log.20130128-13:00:00

It looks as if it properly signaled a restart however  :)
Logged

kmradke

  • Newbie
  • *
  • Offline Offline
  • Posts: 27
Re: ModAutorotate
« Reply #5 on: January 30, 2013, 08:09:29 PM »

Good news!

BTW, there is an ENABLE_PERMINUTE define that looks to support rotation faster than 1 hr... :)
Logged

kmradke

  • Newbie
  • *
  • Offline Offline
  • Posts: 27
Re: ModAutorotate
« Reply #6 on: February 19, 2013, 03:24:29 PM »

Any more luck with this?  I wasn't even able to get the process to signal a restart, so you got a lot farther than me.  I could live without the priority and compression stuff.
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 827
Re: ModAutorotate
« Reply #7 on: February 19, 2013, 06:30:45 PM »

No luck so far, had to put it down for other things. I may pick it up again when I'm looking for a challenge, it's on my list.
Logged
Pages: [1]   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13