Closed Xenomes closed 4 months ago
I use now the following solution.
check host dzga-flask with address 192.168.*.*
start program = "/usr/bin/sudo systemctl start dzga-flask.service" with timeout 60 seconds
stop program = "/usr/bin/sudo systemctl stop dzga-flask.service"
if failed port 8181 protocol https request "/login" for 2 cycles then restart
Use the correct IP / Port and protocol.
Hi, I want to request a feature to add a pidfile for Monit.
the path /home/pi/-flask/dzga.pid is also an option.