Starting BackgrounDRb from Capistrano
BackgrounDRb takes a few seconds to fork a new process, so if your shell exits before the fork (eg. if you're using Capistrano), the terminal will send it a stop signal, killing it. So, you just need to prefix your BDRb start call with nohup and redirect the output to /dev/null.
So...
sudo -u nobody nice script/backgroundrb startbecomes...
sudo -u nobody nohup nice script/backgroundrb start > /dev/null
Leave a Reply