Skip to main content

Monitor keepalived status, run start.sh if server get MASTER role, and run stop.sh if server get SLAVE role.

Project description

keepstart
=========

Monitor keepalived status, run start.sh if server get MASTER role, and run stop.sh if server get SLAVE role.

Install
-------

pip install keepstart


Example Config
--------------

application:
daemon: false
pidfile: jenkins-keep.pid

keepstart:
nic: eth0
vip: 172.18.1.44
start: /opt/app/start.sh
stop: /opt/app/stop.sh
is-running: /opt/app/status.sh

logging:
version: 1
disable_existing_loggers: false
formatters:
simple:
format: "%(asctime)-15s\t%(levelname)s\t%(message)s"
handlers:
console:
class: logging.StreamHandler
level: DEBUG
formatter: simple
loggers:
keepstart:
level: DEBUG
handlers:
- console
propagate: no
root:
level: DEBUG
handlers:
- console

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

keepstart-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file keepstart-0.1.0.tar.gz.

File metadata

  • Download URL: keepstart-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for keepstart-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dbeb4810276d5a96d77d1617ef95da45e77c5e34c7db49ee0c3611f3bffbfbe4
MD5 76617cc453c90abf4ca04a0d9d4e1bdc
BLAKE2b-256 14ab8548eb318a99c76dce7df267f34de824b5d2c82381e9086a96de34792776

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page