From 39d51cb19283e2a1f25820a069c07fe2df3e5e97 Mon Sep 17 00:00:00 2001 From: Chris Leishman Date: Fri, 19 Aug 2011 16:05:20 +0200 Subject: [PATCH] Added documentation of daemonization --- README.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.markdown b/README.markdown index 66407daa5..041f03686 100644 --- a/README.markdown +++ b/README.markdown @@ -265,6 +265,14 @@ worker process. Use the PIDFILE option for easy access to the PID: $ PIDFILE=./resque.pid QUEUE=file_serve rake environment resque:work +### Running in the background + +There are scenarios where it's helpful for the resque worker to run +itself in the background (usually in combination with PIDFILE). Use the +BACKGROUND option so that rake will return as soon as the worker is started. + + $ PIDFILE=./resque.pid BACKGROUND=yes QUEUE=file_serve \ + rake environment resque:work ### Priorities and Queue Lists