lib/generators/kapify/resque/templates/resque_init.erb in kapify-0.0.2 vs lib/generators/kapify/resque/templates/resque_init.erb in kapify-0.0.3

- old
+ new

@@ -9,10 +9,11 @@ # Default-Stop: 0 1 6 # Short-Description: resque - a Redis-backed Ruby library for creating background jobs # Description: resque - a Redis-backed Ruby library for creating background jobs, placing those jobs on multiple queues, and processing them later. ### END INIT INFO +set -u set -e . /lib/lsb/init-functions NAME="<%= application %>" @@ -22,11 +23,14 @@ ENVIRONMENT="production" QUEUES="<%= resque_queue %>" COUNT=<%= resque_workers %> TASK="<%= resque_task %>" PIDFILE="$ROOT/tmp/pids/resque_worker.%d.pid" +RBENV="<%= rbenv_install_path %>" +PATH="$RBENV/shims:$RBENV/bin:$PATH" +BUNDLE="$RBENV/shims/bundle" -BUNDLE="<%= resque_bundle %>" +chdir $ROOT start() { local program local options