此命令是 upstart 脚本的一部分,该脚本曾经在 ubuntu 12.04、10.04 中运行。
sudo start-stop-daemon --start --make-pidfile --pidfile /var/run/mk_order_handler.pid --chuid ubuntu --exec /data2/src/jeapps/sites/crons_index.php workers/mk_order_handler
我刚刚将系统升级到 14.04,upstart 脚本停止工作。当我手动执行 start-stop-daemon 命令时,我收到 Exec format error
。
我能看到的唯一区别是,脚本放置在单独的 block 设备中。会造成问题吗?我该如何修复这个错误?
最佳答案
我刚刚遇到了同样的问题,就我而言,这是由于我的脚本在第一行中缺少 #!/bin/bash
。
关于upstart - 启动-停止-守护进程错误(Exec 格式错误),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25177213/