Forum OpenACS Q&A: How to install keep alive for OpenACS

Hi,

I was wondering if there is a documentation on how to install a keep alive mechanism for OpenACS. I dont
know why at the moment but somehow the server breaks
down every couple of days and I want to get it up again
automatically in case it has crashed until the problem
was fixed.

Can someone kindly help?

Greetings,
Nima

Collapse
Posted by Malte Sussdorff on
  1. Edit /etc/keepalive/keepalive-config.sh to contain a line like:

    set servers_to_monitor {http://www.servicename.com/ "/usr/local/bin/svc -du /service/servicename"}
  2. Add an entry into crontab with "crontab -e" like:

    -*/5 * * * * /var/lib/aolserver/servicename/etc/keepalive/keepalive-cron.sh
How often you check depends on how fast your site comes up usually. A good figure is to take the number of minutes it usually takes for the site to restart and double it. The "5" in the crontab entry is the number of minutes it waits between calling the keepalive script.