https://github.com/bluedynamics/bda.plone.checkclientdisconnected
https://github.com/bluedynamics/bda.plone.checkclientdisconnected
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bluedynamics/bda.plone.checkclientdisconnected
- Owner: bluedynamics
- License: other
- Created: 2012-04-03T09:51:55.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-05-10T22:25:00.000Z (about 14 years ago)
- Last Synced: 2025-02-03T18:38:53.200Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 117 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- License: LICENSE.rst
Awesome Lists containing this project
README
Overview
========
This script will check, and if needed restart a zeo-client or many clients given by a config file.
It is meant to be mainly used as a base script for a cronjob to check multiple instances and
restart them if needed.
Usage
=====
It sets two scripts in the ./bin directory of your egg.
The first script "checksingleclient" takes 2 arguments and restarts the instance if there is an error reaching the zeoserver.
Example::
$./bin/checksingleclient "/home/user/workspace/project1/bin/instance" "http://127.0.0.1:8080/site"
The second script checkmulticlient takes a clientlist file and checks every instance given by it.
A default clientlist is in the /etc folder of your egg.
It contains a section: [zeo-clients]
And the given instances should be listed one per line as a tuple like that:
/pathtoinstance = Address:Port
Example::
/path/to/plone/bin/instance01 = 127.0.0.1:8080
/path/to/plone/bin/instance02 = 127.0.0.1:8081
/path/to/plone2/bin/instance = 127.0.0.1:8180
$./bin/checkmulticlient etc/clientlist.cfg
TODO
====
Contributors
============
- Benjamin Stefaner
- Jens Klein