diff --git a/examples/monitrc.conf b/examples/monitrc.conf new file mode 100644 index 00000000..645ca5f8 --- /dev/null +++ b/examples/monitrc.conf @@ -0,0 +1,6 @@ +check process sidekiq_myapp + with pidfile /path/to/sidekiq.pid + start program = "bundle exec sidekiq -C /path/to/sidekiq_conf.yml -P /path/to/sidekiq.pid" with timeout 90 seconds + stop program = "kill -s INT `cat /path/to/sidekiq.pid`" with timeout 90 seconds + if totalmem is greater than 200 MB for 2 cycles then restart # eating up memory? + group myapp_sidekiq