1234567891011121314151617 |
- check process mosquitto matching mosquitto
- group iot
- start program = "/bin/systemctl start mosquitto"
- stop program = "/bin/systemctl stop mosquitto"
- if failed port 1883 type tcp
- with timeout 10 seconds
- with retry 2
- then restart
- if failed port 8883 type tcp
- with timeout 10 seconds
- with retry 2
- then restart
- if failed port 8083 type tcp
- with timeout 10 seconds
- with retry 2
- then restart
- if 5 restarts within 5 cycles then timeout
|