You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by sbogde <sb...@yahoo.com> on 2009/07/25 19:39:23 UTC
[users@httpd] Cron to check that domains are running
Hi,
I have a dedicated server (lamp & cpanel) under which I host different web
domains:
www.domain1.com, www.domain2.com, www.domain3.com, www.domain4.com, ...
I'm upset because sometimes (rarely, though) I discovered (by opening
www.domainX.com in the browser) that my domains did not work and I had to
restart apache using my root privileges.
Do you have any idea how can I automatically check if such a situation
occurs again? A cron job or something like that?
Thanks a lot for your time,
Sorin
--
View this message in context: http://www.nabble.com/Cron-to-check-that-domains-are-running-tp24659963p24659963.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Cron to check that domains are running
Posted by Jos Chrispijn <ap...@webrz.net>.
sbogde wrote:
> I'm upset because sometimes (rarely, though) I discovered (by opening
> www.domainX.com in the browser) that my domains did not work and I had to
> restart apache using my root privileges.
>
I think it is worth first to find out why this happens. Did you
investigate your logfiles?
> Do you have any idea how can I automatically check if such a situation
> occurs again? A cron job or something like that?
>
If you really want to solve this problem by running a cronjob, you might
put it something like
30 * * * * root /cronjobs/resQmyhttpd.run
resQmyhttpd.run:
apachectl stop
apachectl start
be aware that if there are visitors online, they might be (temporarilly)
disconnect by this action.
Jos Chrispijn
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org