Skip to content

Commit

Permalink
Fixed resque-scheduler recipe to work with jruby
Browse files Browse the repository at this point in the history
  • Loading branch information
jimneath committed Oct 4, 2012
1 parent 3e4cc71 commit ed9b43e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions cookbooks/resque-scheduler/files/default/resque-scheduler
Expand Up @@ -34,8 +34,6 @@
# ** Add kill child functionality (USR1)
# ** Bug where monit either removes a PID file, or fails to write one, resulting in at least
# one rogue worker.<< DONE Hopefuly!
PATH=/data/$APP/current/ey_bundler_binstubs:$PATH
CURDIR=`pwd`

usage() {
echo "Usage: $0 <appname> {start|stop} <environment>"
Expand All @@ -49,11 +47,12 @@ if [ "`whoami`" != "root" ]; then
exit 1
fi

#Baisc Setup of default values
APP=$1 ; ACTION=$2; RACK_ENV=$3;
# Basic setup of default values
APP=$1; ACTION=$2; RACK_ENV=$3;

#Baisc Setup of default values
APP=$1 ; ACTION=$2; RACK_ENV=$3; CONF_FILE=$4;
# Paths
PATH=/data/$APP/current/ey_bundler_binstubs:$PATH
CURDIR=`pwd`

APP_DIR="/data/${APP}"
APP_ROOT="${APP_DIR}/current"
Expand All @@ -73,7 +72,7 @@ GEMFILE="$APP_ROOT/Gemfile"
RAKE="rake"

if [ -f $GEMFILE ];then
RAKE="bundle exec $APP_ROOT/ey_bundler_binstubs/rake"
RAKE="$APP_ROOT/ey_bundler_binstubs/rake"
fi

if [ -d $APP_ROOT ]; then
Expand Down Expand Up @@ -156,4 +155,3 @@ else
echo "/data/$APP/current doesn't exist."
usage
fi

0 comments on commit ed9b43e

Please sign in to comment.