summaryrefslogtreecommitdiff
path: root/bin/background_jobs
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2016-01-14 15:08:15 +0100
committerJacob Vosmaer <contact@jacobvosmaer.nl>2016-01-14 15:08:15 +0100
commit66f28577adc8fef997913cd05ae5884777010cb5 (patch)
tree1f0d434db87c01f1a2e094b136b5d8327d7f10fd /bin/background_jobs
parente85faec90e555a79588e185d81403ab371b4924f (diff)
downloadgitlab-ce-66f28577adc8fef997913cd05ae5884777010cb5.tar.gz
Improve bin/ launchers
Diffstat (limited to 'bin/background_jobs')
-rwxr-xr-xbin/background_jobs7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/background_jobs b/bin/background_jobs
index 5c85fb339e6..5740539cb85 100755
--- a/bin/background_jobs
+++ b/bin/background_jobs
@@ -32,12 +32,12 @@ restart()
start_no_deamonize()
{
- start_sidekiq
+ start_sidekiq >> $sidekiq_logfile 2>&1
}
start_sidekiq()
{
- bundle exec sidekiq -q post_receive -q mailers -q archive_repo -q system_hook -q project_web_hook -q gitlab_shell -q incoming_email -q runner -q common -q default -e $RAILS_ENV -P $sidekiq_pidfile $@ >> $sidekiq_logfile 2>&1
+ bundle exec sidekiq -q post_receive -q mailers -q archive_repo -q system_hook -q project_web_hook -q gitlab_shell -q incoming_email -q runner -q common -q default -e $RAILS_ENV -P $sidekiq_pidfile "$@"
}
load_ok()
@@ -66,6 +66,9 @@ case "$1" in
start_no_deamonize)
start_no_deamonize
;;
+ start_foreground)
+ start_sidekiq
+ ;;
restart)
restart
;;