By Ryan Booker
I recently updated my rails droplet (it is a one-click Ubuntu 14.0.4 droplet set up a while back) to use chruby for ruby management, and updated ruby.
I source chruby in /etc/profile.d/chruby.sh and I removed RVM. Everything appeared to be working as intended.
However I noticed that after rebooting unicorn wasn’t restarting. I fixed the /etc/default/unicorn to remove the rvm paths, and I created a unicorn_wrapper to source chruby, switch to the rails app dir, then bundle exec unicorn.
Starting and stopping unicorn via /etc/init.d/unicorn and service unicorn both succeed and the workers run. However after a reboot the workers are immediately “reaped”.
Any pointers would be much appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @ryanbooker , My understanding is that unicorn run properly but not running after reboot? if this is correct you can use update-rc.d to make unicorn run on boot
update-rc.d unicorn defaults
Thank you.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.