I am trying to start the RoR application named fedena.
What I generally do is SSH login as root
and hit these commands
root@cloud:~# cd fedena
root@cloud:~/fedena# script/server
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:7800
and so on...meaning the app server is running
Then when I close the SSH session, the application ends.
Now,what I figured out was for keeping it alive was to run this shell script through webmin interface and it survived. But, I wanted to autorun this script on every boot/restart. I tried to add
./fedena/script/server
before the exit 0
line in the
/etc/rc.local
Alas ! It didn't work. Why I don't understand.