Question

I currentyl have ruby 1.8.7 setup with rvm. Currently everything is working with rvmsudo, however I need an init.d script that can run the following: rvmsudo /var/rails/sandbox/script/server -p 8080 -e sandbox

unfortunately the rvmsudo part is making it difficult since root does not recongize rvmsudo. does anyone have any ideas on how I can write this init script?

Was it helpful?

Solution

use full path to it: /path/to/rvm/bin/rvmsudo

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top