title: Unicorn before_fork and after_fork for Sidekiq+Redis
body: <p>In unicorn.conf, <code>preload_app</code> is supposed to be set true for performance, but requires starting and stopping Redis in the fork callback. <a href="https://www.digitalocean.com/community/articles/how-to-optimize-unicorn-workers-in-a-ruby-on-rails-app" rel="nofollow">The example here</a> refers to Resque, but I'm wondering what the best setup is for Sidekiq AND where I want to use Redis for other purposes, ie as a persistent database.</p>
  
  <p>I found <a href="https://github.com/mperham/sidekiq/issues/120" rel="nofollow">some info</a>, but nothing specifically on the best practice for this.</p>