-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Starting delayed_job as unicorn_user
Monit tried to start delayed_job as admin user.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
check process openfoodnetwork_dj_worker_0 | ||
with pidfile {{ current_path }}/tmp/pids/delayed_job.0.pid | ||
start program = "/bin/bash -c 'RAILS_ENV={{ rails_env }} {{ unicorn_home_path }}/.rbenv/shims/ruby {{ current_path }}/script/delayed_job -i 0 start'" | ||
as uid {{ user }} and gid {{ user }} | ||
as uid {{ unicorn_user }} and gid {{ unicorn_user }} | ||
with timeout 120 seconds | ||
stop program = "/bin/bash -c 'RAILS_ENV={{ rails_env }} {{ unicorn_home_path }}/.rbenv/shims/ruby {{ current_path }}/script/delayed_job -i 0 stop'" | ||
as uid {{ user }} and gid {{ user }} | ||
as uid {{ unicorn_user }} and gid {{ unicorn_user }} | ||
with timeout 120 seconds | ||
if mem is greater than 250.0 MB for 3 cycles then restart |