Forum OpenACS Q&A: Re: Keepalive problem

Collapse
3: Re: Keepalive problem (response to 1)
Posted by Malte Sussdorff on
Talking about keepalive. Shall I upload the keepalive server along with documentation (*cough*) to the openacs repository and if yes, where too? Shall it go into the official distribution or just be available for download.

If you have no clue what I'm talking about: There is software written by AD which let's you restart your (aol)server if the database connection fails, called keepalive. This happens automatically and you are informed about it via EMail. Very convenient if you are not keen on having your server crash and not come up again due to whatever the reason (e.g. high load).

Collapse
5: Re: Keepalive problem (response to 3)
Posted by Jade Rubick on
Malte, a keepalive script is already uploaded. It's under etc/keepalive. So if you could put it there, that would be great. Documentation especially!
Collapse
6: Re: Keepalive problem (response to 5)
Posted by Malte Sussdorff on
I changed the keepalive scripts so they can be run from a cron job as well.

Quick documentation:

  1. Edit /etc/keepalive/keepalive-config.tcl to reflect your setup:

    set servers_to_monitor {http://www.yourserver.com "svc -du /service/service0"}

  2. Edit your root crontab file:

    export EDITOR=emacs;crontab -e

    Add a line like this:

    -*/2 * * * * /web/service0/etc/keepalive/keepalive-cron.sh