doc: reference --keep-file-descriptors for "bundle exec"
commitafde9a73a0eafb9c52b3d4ce2911692924ea626e
authorEric Wong <e@80x24.org>
Thu, 17 Mar 2016 00:27:36 +0000 (17 00:27 +0000)
committerEric Wong <e@80x24.org>
Thu, 17 Mar 2016 16:35:21 +0000 (17 16:35 +0000)
treefc7372d8757db634d44f76ebdb418150e705f218
parent735d0f82adcdf9851664136424004dacfbe2423c
doc: reference --keep-file-descriptors for "bundle exec"

"bundle exec" alone is not suitable for use with systemd-style
socket activation due to Ruby 2.0+ behavior of setting close-on-exec
for file descriptors above 2.  However, the "--keep-file-descriptors"
option was added to bundler 1.4.0 to workaround this Ruby 2.0 change
and may be used to prevent Ruby 2.0+ from closing file descriptors
on exec.

Thanks to Amir Yalon and Christos Trochalakis for bringing up
this issue on the mailing list:

http://bogomips.org/unicorn-public/1457824748.3666627.547425122.2A828B07@webmail.messagingengine.com/
Sandbox
examples/unicorn@.service