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
Submitted by JamieCameron on Sun, 12/12/2010 - 14:23 Comment #1
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?
This server is on CentOS 5.5. I manualy changed all the restart in graceful.
Martin
Submitted by JamieCameron on Sun, 12/12/2010 - 14:27 Comment #3
Also, check at Webmin -> Servers -> Apache Webserver -> Module Config -> Command to re-read configuration , and make sure it is set to "apachectl graceful"
Submitted by JamieCameron on Sun, 12/12/2010 - 15:51 Comment #4
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
apply_cmd=/usr/sbin/apachectl graceful graceful_cmd=
Submitted by JamieCameron on Thu, 12/16/2010 - 12:27 Comment #6
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?
Ít seems that this is working correct now.