Online Help
You can find the RVM team on IRC in
#rvm on irc.freenode.net
If we do not respond right away, leave a message and a contact to you like email or twitter.
Sponsors
Carbon Ads

Using RVM and Ruby-based services that start via init.d or upstart

To use any Ruby application that needs to be started with init.d or upstart (e.g., god, unicorn, thin) with RVM, you need to generate a wrapper script. Namely, you need to set it up so that there is an alternative executable that loads the correct ruby and gems environment (run this in your shell):

rvm alias create my_app ruby-2.0.0-p247@my_app
# rvm wrapper my_app --no-links unicorn_rails # only for RVM 1.24 and older

This will generate a wrapper that can be referenced in the init.d script or in upstart configuration:

/usr/local/rvm/wrappers/my_app/unicorn_rails

Where:

Example scripts: