If you need nohup functionality, you should also consider screen .
RAILS_ENV=production screen -L rake jobs:work
It launches a new terminal that is not associated with your current session.
To return to the regular terminal, type Ctrl+a , and then d . You can now log out safely without interrupting the rake task.
As a bonus, you automatically get a log file in screenlog.0 .
You can return to your rake method by typing:
screen -r
source share