From b9d0a5e8f045ac04609ebcf13fd85fa6d3bd22c8 Mon Sep 17 00:00:00 2001 From: Diego Date: Tue, 11 Feb 2014 20:11:27 -0200 Subject: [PATCH] adding >/dev/null 2>&1 & --- lib/sidekiq/tasks/sidekiq.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sidekiq/tasks/sidekiq.rake b/lib/sidekiq/tasks/sidekiq.rake index 53409016..8030e5f5 100644 --- a/lib/sidekiq/tasks/sidekiq.rake +++ b/lib/sidekiq/tasks/sidekiq.rake @@ -99,9 +99,9 @@ namespace :sidekiq do end else if fetch(:sidekiq_cmd) - execute fetch(:sidekiq_cmd), "-i #{idx} -P #{pid_full_path(pid_file)} #{fetch(:sidekiq_options)}" + execute fetch(:sidekiq_cmd), "-i #{idx} -P #{pid_full_path(pid_file)} #{fetch(:sidekiq_options)} >/dev/null 2>&1 &" else - execute :bundle, :exec, :sidekiq, "-i #{idx} -P #{pid_full_path(pid_file)} #{fetch(:sidekiq_options)}" + execute :bundle, :exec, :sidekiq, "-i #{idx} -P #{pid_full_path(pid_file)} #{fetch(:sidekiq_options)} >/dev/null 2>&1 &" end end end