Add support for Puma
I was wondering if we could add support for Puma. I would make a merge request but I wasn't sure whether I should directly edit the ebuild or make a new revision, or whether to directly edit the gitlabhq-13.6.init
file or make a new gitlabhq-13.6-r3.init
file. Should we similarly make revisions for the previous versions of gitlabhq? Or maybe we don't make a new revision and instead edit the existing files directly, so existing users aren't forced to reinstall needlessly.
I suggest the following changes:
- The init script chooses to start either Unicorn or Puma depending on which config files exist: /etc/init.d/gitlabhq-13.6
- Edit the ebuild, adding cases for Puma at lines 127, 139, 328, and 477. For line 139, we should probably not comment out
stderr_path
orstdout_path
and instead change it to point to the appropriate file in/var/log/gitlabhq-*
. For line 477, we want to migrateunicorn.rb
only if theunicorn
USE flag is enabled, and we want to migratepuma.rb
only if thepuma
USE flag is enabled.
If you let me know whether I should edit the files directly, I'd be happy to make the merge request.