我正在写一个god 的脚本来监控我的独角兽.我从GitHub的示例脚本开始,一直在修改它以匹配我的服务器配置.一旦god 在运行,像god stop unicorn
和god restart unicorn
这样的命令就行了.
然而,god start unicorn
分得到WARN: unicorn start command exited with non-zero code = 1
分.奇怪的是,如果我直接从配置文件复制启动脚本,它就会像一辆全新的野马一样启动.
这是我的启动命令:
/usr/local/bin/unicorn_rails -c /home/my-linux-user/my-rails-app/config/unicorn.rb -E production -D
我已经在配置文件中将所有路径声明为绝对路径.你知道是什么阻止了这个脚本的运行吗?