logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: apache graceful interrupt the active connection
Author
vijayt779



Joined: 02 Jul 2014
Posts: 8
Location: USA

PostPosted: Wed 02 Jul '14 19:32    Post subject: apache graceful interrupt the active connection Reply with quote

Hi,

We are rotating apache logs 4 times during the day, we are using apache graceful as part of the script so it will generate all new log files.

But I recently found it is killing/closing the active connection for ex: If I am downloading a large file, it fails during the apache graceful restart.

I really appreciate any thoughts/ideas on this?

Please help me.

Thanks
vj
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 02 Jul '14 21:12    Post subject: Reply with quote

mod_log_rotate can at least handle the access logs without restarting graceful.
For error log you can use rotatelogs(.exe) from the apache bin folder.

See http://httpd.apache.org/docs/current/programs/rotatelogs.html
Back to top
vijayt779



Joined: 02 Jul 2014
Posts: 8
Location: USA

PostPosted: Thu 03 Jul '14 1:14    Post subject: Reply with quote

Hi

I did try "rotatelogs" but its not rotating, do I need to recompile with any module?

Please help

Thanks
vj
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Thu 03 Jul '14 2:49    Post subject: Reply with quote

Nope you don't.

Can you please post the config that you tried?
Back to top
vijayt779



Joined: 02 Jul 2014
Posts: 8
Location: USA

PostPosted: Thu 03 Jul '14 2:58    Post subject: Reply with quote

Here it is;

CustomLog "|/usr/local/apache-dyna/bin/rotatelogs /usr/local/apache-dyna/logs/access_log 300" common

Should I post the full confg. please let me know

Thanks
vj
Back to top


Reply to topic   Topic: apache graceful interrupt the active connection View previous topic :: View next topic
Post new topic   Forum Index -> Apache