bigbluebutton-Github/labs/bbb-webhooks/config/monit-bbb-webhooks
2014-11-24 12:56:04 -02:00

13 lines
388 B
Plaintext
Executable File

#!monit
set logfile /var/log/monit.log
check process bbb-webhooks with pidfile "/var/run/bbb-webhooks.pid"
start program = "/sbin/start bbb-webhooks"
stop program = "/sbin/stop bbb-webhooks"
if failed port 3005 protocol HTTP
request /bigbluebutton/api/hooks/ping
with timeout 30 seconds
then restart
# if 5 restarts within 5 cycles then timeout