rob*_*ert 7 upstart start-stop-daemon ubuntu-14.04
此命令是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.
我能看到的唯一区别是,脚本放在一个单独的块设备中.它会引起问题吗?我怎么能修复这个错误?
您应该使用 . 将参数与可执行路径分开--。
结果将是:
启动-停止守护进程 --start --make-pidfile --pidfile /var/run/mk_order_handler.pid --chuid ubuntu --exec /data2/src/jeapps/sites/crons_index.php --workers/mk_order_handler
另外,我不知道你为什么使用sudo. Upstart 作业以 root 身份运行,因此它们不需要sudo.
| 归档时间: |
|
| 查看次数: |
2818 次 |
| 最近记录: |