top | item 22278241

(no title)

pushpop | 6 years ago

If you don’t change the inode then no restart should be required. There’s definitely a few tools out there that solve this problem without needing to restart httpd.

discuss

order

toast0|6 years ago

How do you rotate without changing the inode?

pushpop|6 years ago

Sorry, my previous comment was really unhelpful.

What I meant was you should be using pipes and apaches own log rotate code.

Read the “Logging Using Pipes” section at the very end.

https://www.digitalocean.com/community/tutorials/how-to-conf...

(Excuse the DO link, it was just the first result in Duck Duck Go. There’s nothing specific about DO or Ubuntu in this approach)

I’ve used this method on large clusters of very heavily utilised web servers and it works great. No restarts required.