Restart Apache the Safe Way
I’ve established a good reputation with being careless with restarting services. For those that can’t afford a second of downtime, you can check if your configuration is sane. This ensures your service won’t go down longer than expected while you look for that syntax error:
apachectl -t
I remember running across that before but forgot how to do it. Found it again while trying to trim down Apache’s Fancy Indexing.
Update: Ha ha! Silly me. I was going to add this to the init script so that it won’t restart if the syntax check failed. It turns out that it’s already in the script under the reload function (I’m using CEntOS).
![Brain dump | [root@jploh.com ~]# cat /var/log/irant_](http://blog.jploh.com/wp-content/themes/default2/images/blog_jplohcom.jpg)
Archives