upstart - 启动-停止-守护进程错误(Exec 格式错误)

标签 upstart ubuntu-14.04 start-stop-daemon

此命令是 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/

相关文章:

linux - 如何在linux后台自动启动和推进应用程序中的几个步骤?

linux - 如何在 ubuntu 14.04 上安装 virtualbox?

python - 启动停止守护进程和 python

Linux 守护进程停止启动停止守护进程

node.js - Upstart 错误以状态 1 终止

linux - 我怎样才能用 yas3fs 做一份 Upstart 的工作?

linux - i3/usr/bin/dunst 耗尽内存

ubuntu - init.d:​​ 通过 "start-stop-daemon"启动 mplayer

ruby-on-rails - 使用 Upstart 管理 Unicorn w/rbenv + bundler binstubs w/ruby-local-exec shebang

linux - Ubuntu-带有 ACL 的 sudo