From 46c77e429e8af4ab12995c650a63b4cc86d63ff4 Mon Sep 17 00:00:00 2001 From: Lewis Marshall Date: Sat, 1 Feb 2014 09:12:33 +0000 Subject: [PATCH] Start sidekiq as a daemon so it logs errors to the logfile This is better than using & to background the process because stdout and stderr get lost if we do it that way --- cookbooks/sidekiq/templates/default/sidekiq.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/sidekiq/templates/default/sidekiq.erb b/cookbooks/sidekiq/templates/default/sidekiq.erb index e7883107..2e3f43e8 100755 --- a/cookbooks/sidekiq/templates/default/sidekiq.erb +++ b/cookbooks/sidekiq/templates/default/sidekiq.erb @@ -53,7 +53,7 @@ start () fi # start sidekiq - sidekiq -C "${conf_file}" -e "${rails_env}" -r "${app_root}" -P "${pid_file}" -L "${log_file}" & + sidekiq -d -C "${conf_file}" -e "${rails_env}" -r "${app_root}" -P "${pid_file}" -L "${log_file}" exit $? }