My client decided that he wanted his server to be managed by the company that is hosting everything. So that means no more root for me. Which sucks because now everything I need to do I have to ask them.
I use capistrano 2 (because I didn’t have the guts to update to 3 yet) to deploy my apps and I need to run the setup command to create the syminks to the nginx.conf and the unicorn.sh that’s going to be at /etc/init.d but I can’t because there’s no sudo. For the nginx.conf they gave me a reasonable solution. But for the unicorn, I don’t know.
As the Unicorn Workers are managed by yourself anyway, its probably the most easiest way to ensure they get started on reboot to add a matching @reboot entry to your users crontab. Or if you need better service checking or have a lot of self managed daemons, you can also install a tool like monit into your /home and run it by yourself.
Any thoughts? Never used monit and I’m not sure how to use the other approach when deploying new versions or simply having to restart the server.
Could you give me a light on how I could run monit + unicorn without having to use the /etc/init.d approach? All of the solutions I could find until now were using it.