I have scoured the web and tried numerous solutions. Nothing has worked for me so far, hence this question.
I have a rails application that I run with
mongrel_rails start -e production -p 80. That command has to be run from the directory of the application, in this case "/var/myapp".
This is the setup:
#!/bin/bash sleep 15; cd /var/myapp/ mongrel_rails start -e production -p 80
I added this (
sh /etc/mongrel.sh) before
exit 0 in /etc/rc.local
The above does NOT work, but it does work when run manually
sh /etc/mongrel.sh. I have also tried running this in a screen session using:
screen -d -m *command*.
Any suggestions to get this working as desired? I need this application running after boot.