title: Starting sidekiq with capistrano
body: <p>I want to start sidekiq with capistrano. Below is code for that</p>
  
  <pre><code>namespace :sidekiq do
    task :start do
      run "cd #{current_path} &amp;&amp; bundle exec sidekiq -c 10 -e production -L log/sidekiq.log &amp;"
      p capture("ps aux | grep sidekiq | awk '{print $2}' | sed -n 1p").strip!    
    end
  end
  </code></pre>
  
  <p>It executes successfully but still sidekiq is not started on server.</p>
  
  <p>output:</p>
  
  <pre><code>$ cap sidekiq:start
      triggering load callbacks
    * 2014-06-03 15:03:01 executing `sidekiq:start'
    * executing "cd /home/project/current &amp;&amp; bundle exec sidekiq -c 10 -e production -L log/sidekiq.log &amp;"
      servers: ["x.x.x.x"]
      [x.x.x.x] executing command
      command finished in 1229ms
    * executing "ps aux | grep sidekiq | awk '{print $2}' | sed -n 1p"
      servers: ["x.x.x.x"]
      [x.x.x.x] executing command
      command finished in 1229ms
  "19291"
  </code></pre>