I have a couple webservers sitting behind a loadbalancer, and i found "watcher.py" here: https://github.com/splitbrain/Watcher
I chose this script for several reasons: recursive through folders, lots of triggering options
Anyways, I will be using this to sync web content between load balanced servers. Is there a way to ensure that this script will run at bootup?
Best Answer
I've found the easiest way to handle applications like this is to install
supervisord
and then use that to start, monitor, and collect output from the your script.Here's a sample supervisor config file: