Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Commit

Permalink
Remove unused start_no_deamonize action
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobvosmaer committed Jan 29, 2014
1 parent bd9c70b commit 5ee5231
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions script/background_jobs
Expand Up @@ -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
Expand All @@ -42,15 +37,12 @@ case "$1" in
start)
restart
;;
start_no_deamonize)
start_no_deamonize
;;
restart)
restart
;;
killall)
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

0 comments on commit 5ee5231

Please sign in to comment.