rails@george:/srv/fsg_distro$ /usr/bin/env HOME=/home/rails RAILS_ENV=production /usr/bin/ruby /srv/fsg_distro/current/script/delayed_job start
delayed_job: process with pid 23622 started.
rails@george:/srv/fsg_distro$ ps -ef | grep 23622
rails@george:/srv/fsg_distro$
ps对我说谎吗?可能不是。我会想象延迟的工作脚本会立即启动和停止。有谁知道调试这个的好方法吗?
答案 0 :(得分:0)
你检查了env的退出状态吗?
0 if no COMMAND is specified and the environment is output 1 if `env' itself fails 126 if COMMAND is found but cannot be invoked 127 if COMMAND cannot be found the exit status of COMMAND otherwise