Following is link to my init script for unicorn. https://gist.github.com/1466775
Restart command has never worked for me. I am using upgrade to restart unicorn after eac
I had the same issue, but I was using rbenv which was installed on per user basis. I used this init script
I figured out that since my rbenv installed on per user basis I need to slightly change this:
CMD="cd $APP_ROOT; bundle exec unicorn -D -c $APP_ROOT/config/unicorn.rb -E production"
with this:
CMD="cd $APP_ROOT; ~/.rbenv/bin/rbenv exec bundle exec unicorn -D -c $APP_ROOT/config/unicorn.rb -E production"
Hope it will help you!
P.S. or somebody else since it's an old question =)