Skip to content

This is a little python2 program that can be used like a service that checks for pre configured services and update nginx.conf if any changes are detected.

Notifications You must be signed in to change notification settings

wborgo/HealthChecker_nginx_swarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HealthChecker_nginx_swarm

This is a little python3 program that can be used like a service that checks for pre configured docker swarm services and update nginx.conf if any changes are detected. This program works with a installed Nginx in a CentOS 7

sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm yum install -y python3.6 yaml

How to Execute like a service:

Create the file /lib/systemd/system/healthchecker.service

[Unit] Description=HealthChecker

[Service] Type=simple ExecStart=/usr/bin/python2.7 /dados/healthCheck/hc.py StandardInput=tty-force

[Install] WantedBy=multi-user.target

systemctl start healthchecker.service

systemctl status healthchecker.service

systemctl enable healthchecker.service

About

This is a little python2 program that can be used like a service that checks for pre configured services and update nginx.conf if any changes are detected.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages