Skip to content

Instantly share code, notes, and snippets.

@sisk
Created September 21, 2010 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sisk/590422 to your computer and use it in GitHub Desktop.
Save sisk/590422 to your computer and use it in GitHub Desktop.
check process delayed_job with pidfile <%= node[:app][:current_path] %>/tmp/pids/job_runner.pid
start = "/usr/bin/sudo -u <%= node[:apache][:user] %> /usr/bin/env RAILS_ENV=<%= node[:app][:environment] %> <%= node[:app][:current_path] %>/script/worker start"
stop = "/usr/bin/sudo -u <%= node[:apache][:user] %> /usr/bin/env RAILS_ENV=<%= node[:app][:environment] %> <%= node[:app][:current_path] %>/script/worker stop"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment