configuration-templates
/monit/debian/templates/broadlink-mqtt-bridge |
@@ -0,0 +1,9 @@ |
########################################################################### |
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
########################################################################### |
|
check process broadlink-mqtt-bridge matching broadlink-mqtt-bridge |
start program "/usr/bin/systemctl start broadlink" |
stop program "/usr/bin/systemctl stop broadlink" |
if failed host 127.0.0.1 port 3000 type tcp then restart |
# if 5 restarts within 5 cycles then timeout |