Come configurare Monit con CouchPotato

sudo nano /etc/monit/conf.d/couchpotato

Incollate dentro:

check process CouchPotato matching "couchpotato"
start program = "/etc/init.d/couchpotato start"
stop program  = "/etc/init.d/couchpotato stop"
if failed host 127.0.0.1 port 5050 type TCP for 2 cycles then restart
if 2 restarts within 3 cycles then unmonitor

E poi riavviate Monit con:

sudo monit reload

Pubblicato

in

da