# # Configuration file for mylbhelper # # Defaults to /etc/mylbhelper.conf # Can be overridden with -c # # Fork into the background once we've started daemonize=yes # Output cruft when things happen! debug=no # Whether to write to syslog or not syslog=yes # Check the status every two and a half seconds interval=2.5 # Use these details for the query host=127.0.0.1 port=3306 database=mysql username=root password= # If this query fails in any shape or form... (omit trailing semi-colon) query=SELECT * FROM host # .. run this script.. (bear in mind that this is done through a blocking call) down_command=/usr/local/bin/mylbhelper_down.sh # What return code to expect from above command down_return=0 # ... and when it works again - run this. (this is also done through a blocking call) up_command=/usr/local/bin/mylbhelper_up.sh # What return code to expect from above command up_return=0 # Write our PID to this file - default typically requires root permissions pid-file=/var/run/mylbhelper.pid