Apache shuts down after a log rotate restart

Hello,

When a new server is created the default logrotate wil restart apache. This is done by a restart instead of a gracefull.

As soon as the is a restart my apache won't restart and all my website are going down. The work-a-roud is to manual change a apache restart in a gracefull restart.

Martin Koekenberg

Status: 
Closed (fixed)

Comments

That's unusual, as the default config should use apachectl graceful to signal Apache after a log rotation.

Are you running on CentOS 5 there?

mlkoekenberg's picture
Submitted by mlkoekenberg on Sun, 12/12/2010 - 14:26

This server is on CentOS 5.5. I manualy changed all the restart in graceful.

Martin

Also, check at Webmin -> Servers -> Apache Webserver -> Module Config -> Command to re-read configuration , and make sure it is set to "apachectl graceful"

I would be interested to see what commands Virtualmin is using by default. Could you run the following and post the output here :

grep -e apply_cmd -e graceful_cmd /etc/webmin/apache/config
mlkoekenberg's picture
Submitted by mlkoekenberg on Thu, 12/16/2010 - 12:21

apply_cmd=/usr/sbin/apachectl graceful graceful_cmd=

So if you create a new test domain and then look at it's block in /etc/logrotate.conf , is it using the graceful restart command?

mlkoekenberg's picture
Submitted by mlkoekenberg on Wed, 01/05/2011 - 09:41

Ít seems that this is working correct now.