lib/generators/kapify/resque/templates/resque_init.erb in kapify-0.0.12 vs lib/generators/kapify/resque/templates/resque_init.erb in kapify-0.0.13

- old
+ new

@@ -20,10 +20,11 @@ ROOT=<%= current_path %> USER="<%= resque_user %>" GROUP="<%= resque_user %>" ENVIRONMENT="<%= rails_env %>" QUEUES="<%= resque_queue %>" +INTERVAL="<%= resque_interval %>" COUNT=<%= resque_workers %> TASK="<%= resque_task %>" PIDFILE="$ROOT/tmp/pids/resque_worker.%d.pid" RBENV="<%= rbenv_install_path %>" PATH="$RBENV/shims:$RBENV/bin:$PATH" @@ -35,10 +36,10 @@ local program local options program=$BUNDLE options="exec rake $TASK" -options="$options RACK_ENV=$ENVIRONMENT QUEUES=$QUEUES NEWRELIC_DISPATCHER=resque" +options="$options RACK_ENV=$ENVIRONMENT INTERVAL=$INTERVAL QUEUES=$QUEUES NEWRELIC_DISPATCHER=resque" for i in $(seq 1 $COUNT); do pidfile=$(printf "$PIDFILE" $i) if start-stop-daemon --start --background --quiet --pidfile $pidfile --chdir $ROOT --chuid $USER:$GROUP --exec $program -- $options PIDFILE=$pidfile