Pergunta

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?

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top