Re: Cron to check that domains are running

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

 



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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux