【发布时间】:2014-03-16 16:46:48
【问题描述】:
我想运行通过 Rbenv 安装的 Ruby 2.1.1 的脚本。这是我的新贵脚本:
start on runlevel [2345]
stop on runlevel [!2345]
setuid custom_user
setgid custom_user
script
cd /home/custom_user/application/ && rbenv shell 2.1.1 && bundle exec ruby script.rb
end script
如果我运行记录为custom_user 的命令,它会完美运行。在application 目录中,我有Gemfile。
Upstart 给我以下错误信息:script main process (28879) terminated with status 127
【问题讨论】:
标签: ruby bundler rbenv upstart