暴发户看不到我的工作

xde*_*ser 12 linux ubuntu upstart ubuntu-12.10

在 Ubuntu 12.10 中

user@xyz:~$ sudo initctl --version
initctl (upstart 1.5)
Copyright (C) 2012 Scott James Remnant, Canonical Ltd.

This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
user@xyz:~$ ls -l /etc/init/rs-comm.conf
-rw-r--r-- 1 root root 349 ????. 15 03:22 /etc/init/rs-comm.conf
user@xyz:~$ sudo initctl reload-configuration
user@xyz:~$ sudo initctl start rs-comm
initctl: Unknown job: rs-comm
Run Code Online (Sandbox Code Playgroud)

小智 15

你的工作可能包含无效的语法,这意味着 Upstart 不会考虑它。尝试以普通用户(而不是root 用户)运行以下命令:

init-checkconf /etc/init/rs-comm.conf
Run Code Online (Sandbox Code Playgroud)

  • `错误:未能要求 Upstart 检查 conf 文件` (8认同)
  • 解决了。我在 init-checkconf 的调试输出中注意到它要求 Upstart 将答案写入`/tmp` 中的文件。我看着那里 - 他们在这里 - 几个文件指向我的作业文件中的错误。我已经修正了那个错字,现在我的工作被 Upstart 看到了。仍然有问题为什么 init-checkconf 没有看到 Upstart 的答案。 (7认同)
  • @xdenser init-checkconf 的问题很可能是这个问题:https://bugs.launchpad.net/upstart/+bug/881885 (4认同)