This is usually caused by an incorrect environment. Check the Ruby output in the created nohup.out
file and log the stderr of nohup itself to a file.
It's frequently solved by starting the script with:
#!/bin/bash
source ~/.bash_profile
source ~/.bashrc
This will ensure that you run with bash
instead of sh
, and that any settings like PATH you've configured in your init files will be set.