capistrano-plugins / capistrano-unicorn-nginx

Capistrano tasks for automatic and sensible unicorn + nginx configuration
MIT License
175 stars 81 forks source link

Ubuntu 16.04 Support Discussion #104

Open griffithac opened 7 years ago

griffithac commented 7 years ago

I am opening this PR in order to continue the conversation about systemd support. This is the code I am currently using in production on Ubuntu 16.04 and it is working well now. Unicorn restarts after each deploy. However there has been some conversation about the way I am restarting services. It may not be the best approach.

tomprats commented 6 years ago

@griffithac Is there anything holding this back from being merged?

tomprats commented 6 years ago

@griffithac Additionally, looks like the app won't recover from a box restarting. I had to enable my service manually with systemctl enable unicorn_#{app}_#{stage}.service. I'm not sure where exactly to put it, but I'll try and create a PR for it when I get a chance

rhomeister commented 6 years ago

I'm still using 14.10, but I'm happy to merge this if/when this has been tested on both systemctl and sysv.