1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/monit/templates/ejabberd.unused
Jerry Vonau e397f50f53 tag unused
Use what is in /etc/monit/conf-available as a starting point
2021-05-16 16:25:32 -05:00

7 lines
396 B
Text
Executable file

check process ejabberd with pidfile /var/run/ejabberd/ejabberd.pid
start program = "/usr/libexec/ejabberd-xs start && sleep 10"
stop program = "/usr/libexec/ejabberd-xs stop && sleep 10"
if cpu > 60% for 2 cycles then restart
if totalmem > 200.0 MB for 3 cycles then restart
if failed host localhost port 5222 type tcp then restart
if 3 restarts within 5 cycles then timeout