Skip to main content
100%

initctl + resque + rvm

✓ Published0🌍 Public
TThanad
Last edited Dec 13, 2012
Created on Dec 13, 2012

This example shows how to configure GitLab’s Resque workers with Upstart, integrating RVM for Ruby version management. It displays the `resque.conf` job definition, which uses Upstart directives (`start on`, `respawn`, `post-stop script`) to manage the worker lifecycle, and the accompanying `resque.sh` shell script. The script sources RVM’s `scripts/rvm`, calls `rvm 1.9.3` to select the Ruby version, then runs `rake environment resque:work` with a PID file. The rendering is plain-text code highlighting, showing the configuration and script side-by-side.

AI-generated description

Similar vizzes