configuration-templates
/monit/debian/templates/resilio-sync |
@@ -0,0 +1,9 @@ |
########################################################################### |
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
########################################################################### |
|
check process resilio-sync with pidfile /var/run/resilio-sync/sync.pid |
start program "/etc/init.d/resilio-sync restart" |
stop program "/etc/init.d/resilio-sync stop" |
if failed host 127.0.0.1 port 8888 type tcp then restart |
# if 5 restarts within 5 cycles then timeout |