Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- check process sidekiq_1 with pidfile /tmp/pids/sidekiq_1.pid
- start program = "/bin/bash -l -c 'bundle exec sidekiq start" as uid jim and gid jim with timeout 250 seconds
- stop program = "/bin/bash -l -c 'bundle exec sidekiq stop" as uid jim and gid jim with timeout 120 seconds
- if cpu usage > 25% for 18 cycles then restart
- if mem > 1500.0 MB for 18 cycles then restart
- monit unmonitor sidekiq_1
- monit monitor sidekiq_1
- ################################################################################
- # Shutdown Cucumber
- ################################################################################
- 01 15 * * 1-5 monit unmonitor `/bin/hostname`
- 50 23 * * 0-5 monit -g servers stop all
- 51 23 * * 0-5 monit -g base stop all
- 52 23 * * 0-5 monit stop all
- jim ALL=NOPASSWD: /usr/bin/monit unmonitor sidekiq_1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement