[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Fwd: Restarting Apache via a script]



And following on from this question... What is the bext way to restart apache once confiuration is deemed correct?

/etc/init.d/apache2 restart ?

-------- Original Message --------

Hi There,

We have a custom apache configuration front-end that we have built, it
allows our wholesale customers to add/edit/delete hosts etc... The
standard thing. We then have a cron task that looks for any
additions/updates etc and executes some scripts like building dir
structures, writing apache conf filese etc...

How do you get around the fact that *sometimes* if there are any errors
within the conf files, a "apache2ctl -t" outputs "Syntax OK", but if you
do a real restart, apache fails to start for xx reason...

Is there a way to TRULY check if there is any issues with the configuration?

Simon




Reply to: