#!/bin/sh

cd <%= File.join(node['private_chef']['opscode-solr']['dir'], 'jetty') %>

exec 2>&1
exec chpst -P -o 50000 -U <%= node['private_chef']['user']['username'] %> -u <%= node['private_chef']['user']['username'] %> /usr/bin/env PATH=/opt/opscode/embedded/bin:/opt/opscode/bin:/opt/opscode/embedded/jre/bin:$PATH JAVA_HOME=/opt/opscode/embedded/jre <%= node['private_chef']['opscode-solr']['command'] %>


#!/bin/sh

cd <%= File.join(node['private_chef']['opscode-solr']['dir'], 'jetty') %>

ulimit -n 50000

exec 2>&1
exec chpst -P -o 50000 -U <%= node['private_chef']['user']['username'] %> -u <%= node['private_chef']['user']['username'] %> /usr/bin/env PATH=/opt/opscode/embedded/bin:/opt/opscode/bin:/opt/opscode/embedded/jre/bin:$PATH JAVA_HOME=/opt/opscode/embedded/jre <%= node['private_chef']['opscode-solr']['command'] %>


Fix Solr fd exhaustion by upping fd ulimit
Fix Solr fd exhaustion by upping fd ulimit

For reference, see commit e64f710be3badc316baa2f26e2c40a2ebfbfc902 in
opscode-platform cookbooks.
