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?

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top