After adding virtual site apache root process crashes rotating logs and eventually all apache processes halt.

When adding any virtual site to the server it adds a line in logrotate.conf for that site:

/etc/rc.d/init.d/httpd restart ; sleep 5

This does not work and httpd doesn't fully restart. This line however does work:

/usr/sbin/apachectl graceful

If I manually change any httpd restart lines to the above line everything works.

However I can't find where this is generated to change it So I have to manually do it. Also, I think the /usr/sbin/apachectl graceful is a better way to restart apache.

Anybody know where this is pulled from? Can't find it anywhere.




Howdy -- the line you're seeing was actually added because using the "graceful" restart wasn't restarting properly.

However, you chance change what it uses as the restart command by going into Webmin -> Servers -> Apache -> Module Config -> System Configuration, and the command added into logrotate should be "Command to apply configuration".

What is that option set to on your system?