summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-01-29 14:52:57 +0100
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-01-29 14:52:57 +0100
commit5ee5231b35172c14007b57a3b6cf36d34aec75ef (patch)
treeb3991b90cce18a8bed5681f5e36533d23afe2862 /script
parentbd9c70b1dd27fd928e7e3f29bd14833bcb94b4c2 (diff)
downloadgitlab-ci-5ee5231b35172c14007b57a3b6cf36d34aec75ef.tar.gz
Remove unused start_no_deamonize action
Diffstat (limited to 'script')
-rwxr-xr-xscript/background_jobs14
1 files changed, 3 insertions, 11 deletions
diff --git a/script/background_jobs b/script/background_jobs
index 6847869..4c88809 100755
--- a/script/background_jobs
+++ b/script/background_jobs
@@ -22,17 +22,12 @@ function restart
stop
fi
killall
- start_sidekiq -d -L $sidekiq_logfile
-}
-
-function start_no_deamonize
-{
- start_sidekiq
+ start_sidekiq
}
function start_sidekiq
{
- bundle exec sidekiq -q runner,common,default -e $RAILS_ENV -P $sidekiq_pidfile $@ >> $sidekiq_logfile 2>&1
+ bundle exec sidekiq -q runner,common,default -e $RAILS_ENV -P $sidekiq_pidfile -d -L $sidekiq_logfile >> $sidekiq_logfile 2>&1
}
case "$1" in
@@ -42,9 +37,6 @@ case "$1" in
start)
restart
;;
- start_no_deamonize)
- start_no_deamonize
- ;;
restart)
restart
;;
@@ -52,5 +44,5 @@ case "$1" in
killall
;;
*)
- echo "Usage: RAILS_ENV=your_env $0 {stop|start|start_no_deamonize|restart|killall}"
+ echo "Usage: RAILS_ENV=your_env $0 {stop|start|restart|killall}"
esac