Re: Make Rails start automatically on boot Ubuntu server 14.04
That's not an init.d script you've written, just a general bash script. Take a look at /etc/init.d/skeleton for an example, and the others in that directory.
It might help if you looked into how the init.d scripts worked which would give you a better understanding of what's going on. https://help.ubuntu.com/community/UbuntuBootupHowto http://www.cyberciti.biz/tips/linux-...p-service.html
Presumably your rails app needs to run under your user account? When the init scripts are run they're called as root so that'll be all wrong. You'd probably need to use su to switch user when you start your rails server.
Why don't you just run it under apache+passenger or nginx+unicorn?
Update: Google 'rails server init.d' and it throws up the following
http://blog.sam-pointer.com/2011/03/...tu-server.html
Mark your thread as [SOLVED], use Thread Tools on forum page.
Bookmarks