Skip to content

Commit 39d51cb

Browse files
committed
Added documentation of daemonization
1 parent 60b157d commit 39d51cb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.markdown

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,14 @@ worker process. Use the PIDFILE option for easy access to the PID:
265265

266266
$ PIDFILE=./resque.pid QUEUE=file_serve rake environment resque:work
267267

268+
### Running in the background
269+
270+
There are scenarios where it's helpful for the resque worker to run
271+
itself in the background (usually in combination with PIDFILE). Use the
272+
BACKGROUND option so that rake will return as soon as the worker is started.
273+
274+
$ PIDFILE=./resque.pid BACKGROUND=yes QUEUE=file_serve \
275+
rake environment resque:work
268276

269277
### Priorities and Queue Lists
270278

0 commit comments

Comments
 (0)