If you can help or wish to become one of the maintainers - just start helping.
You can find more RVM related projects at
RVM Github organization.
CARVIEW |
Select Language
HTTP/2 301
server: nginx/1.10.3 (Ubuntu)
content-type: text/html
location: https://rvm.io/integration/init-d
strict-transport-security: max-age=63072000; includeSubDomains
x-frame-options: DENY
x-content-type-options: nosniff
accept-ranges: bytes
age: 0
date: Sat, 11 Oct 2025 17:43:05 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210022-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1760204585.406814,VS0,VE536
content-length: 194
HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 4787
Server: nginx/1.10.3 (Ubuntu)
Content-Type: text/html
Last-Modified: Fri, 15 Jan 2021 20:40:02 GMT
ETag: W/"6001fda2-3faf"
Strict-Transport-Security: max-age=63072000; includeSubDomains
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Encoding: gzip
Accept-Ranges: bytes
Age: 0
Date: Sat, 11 Oct 2025 17:43:06 GMT
Via: 1.1 varnish
X-Served-By: cache-bom-vanm7210065-BOM
X-Cache: MISS
X-Cache-Hits: 0
X-Timer: S1760204586.971777,VS0,VE526
RVM: Ruby Version Manager -
RVM and Ruby-based services started with init.d or upstart
Support
RVM is maintained by community of volunteers, report issues to
RVM issues tracker.
Donation
Love RVM? Help us maintain RVM, a donation can help with it.
Want to help in other way, want to be a sponsor?
contact:
Michal Papis
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:
/usr/local/rvm
- isecho $rvm_path
wrappers
- is static always the samemy_app
- is the alias nameunicorn_rails
- is the command that is being wrapped
Example scripts:
RVM
- About
- Autolibs
- Basics
- Best Practices
- Cli
- Configuration
- Info
- Install
- Myths
- Offline
- Prerequisites
- Security
- Upgrading
Gemsets
- Basics
- Clear
- Copying
- Creating
- Deleting
- Emptying
- Exporting
- Global
- Ignoring
- Importing
- Initial
- Listing
- Using
∞
Copyright
© 2009-2011
Wayne E. Seguin
© 2011-2017
Michal Papis
© 2016-2017
Piotr Kuczynski
∞
Built with
Nanoc
∞
Cached by
Fastly
∞
Tested by
Travis CI