Skip to content

Instantly share code, notes, and snippets.

@tjl2
Created February 6, 2013 21:03
Show Gist options
  • Save tjl2/4725822 to your computer and use it in GitHub Desktop.
Save tjl2/4725822 to your computer and use it in GitHub Desktop.
cmd="/usr/bin/env \$V \$VV APP_ROOT=\${application_root} RACK_ENV=\${environment} RAILS_ENV=\${environment} MERB_ENV=\${environment} ${queue_parameters[*]} ${RAKE:-'rake'} -f \${application_root}/Rakefile resque:work"
eval "sudo -u \$USER -H $cmd >> \$logfile 2>&1 &"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment