Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

etc_monit_conf.d_mastodon 902B

123456789101112131415161718192021222324
  1. check process mastodon-web matching "puma [0-9.]* \(tcp://0.0.0.0:4220\) \[mastodon\]"
  2. group social
  3. start program = "/bin/systemctl start mastodon-web"
  4. stop program = "/bin/systemctl stop mastodon-web"
  5. if failed port 4220 type tcp
  6. with timeout 10 seconds
  7. with retry 2
  8. then restart
  9. if 5 restarts within 5 cycles then timeout
  10. check process mastodon-streaming matching "/home/mastodon/mastodon/streaming/index.js"
  11. group social
  12. start program = "/bin/systemctl start mastodon-streaming"
  13. stop program = "/bin/systemctl stop mastodon-streaming"
  14. if failed port 4210 type tcp
  15. with timeout 10 seconds
  16. with retry 2
  17. then restart
  18. if 5 restarts within 5 cycles then timeout
  19. check process mastodon-sidekiq matching "sidekiq [0-9.]* mastodon"
  20. group social
  21. start program = "/bin/systemctl start mastodon-sidekiq"
  22. stop program = "/bin/systemctl stop mastodon-sidekiq"