containers-postsrsd/monit.conf

7 lines
268 B
Plaintext
Raw Normal View History

2020-09-04 13:19:00 +00:00
check process postsrsd with pidfile /tmp/postsrsd.pid
start program = "/usr/local/bin/postsrsd"
stop program = "/bin/sh -c 'cat /tmp/postsrsd.pid | xargs -r kill'"
if failed port 10001 for 3 cycles then restart
if failed port 10002 for 3 cycles then restart