#!/bin/bash
# Start sidekiq

# save cyrrebt working directory
here=`pwd`

my_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $my_dir/check_app_root

pidfile=$APP_ROOT/tmp/pids/sidekiq.pid

cd $APP_ROOT

echo -n "Starting sidekiq ... "
sidekiq $1 --logfile $APP_ROOT/log/sidekiq.log --pidfile $pidfile
echo "done."

cd $here