summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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