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

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.