Tag Info

New answers tagged


You're using rvm, so the proper way to deal with ruby not being found is to use an rvm wrapper (on SysVinit and upstart systems). First (optional) create an alias for your app to the gemset you want to use: rvm alias create my_app ruby-2.1.4@my_gemset Then create the wrapper(s) you want: rvm wrapper my_app mongrel_rails The wrapper is created in the ...


If '/var/script/start.sh' works when you run it logged in as user01, then your script depends on environment variables. To see those variables run 'env'. Maybe something is missing when you try to run it from the root account via 'su user01 -c'. What I would suggest is to try using a special option '-' with su. From the man page: -, -l, --login ...

Top 50 recent answers are included