defunkt/resque — Issue #461: Worker Deamon
Author: smartcode
Created: 2011-11-24 08:36:55+00:00
State: open

Hello,
I am running a Rails 3.1 App on a Apache/Passenger environment using Resque. My Problem is that i have access to my server over ssh and when i start the worker with

rake resque:work QUEUE='*'

everything works fine but if i close the ssh session the worker quits

i also tried

PIDFILE=./resque.pid BACKGROUND=yes QUEUE=* rake environment resque:work

but the worker also quits

How can i make a worker start up when my Rails app is starting up and keep it alive as long as the app is running?
Thanks