launchctl列表的状态栏中的数字是什么意思?


15

launchctl在launchctl列表输出中具有“状态”列。手册页或任何相关的启动手册页均未提及本专栏或其含义。

Answers:


17

它是该服务的最后一个退出代码。

launchctl手册页介绍它。

 list [-x] [label]
          With no arguments, list all of the jobs loaded into launchd in
          three columns. The first column displays the PID of the job if
          it is running.  The second column displays the last exit status
          of the job. If the number in this column is negative, it repre-
          sents the negative of the signal which killed the job.  Thus,
          "-15" would indicate that the job was terminated with SIGTERM.
          The third column is the job's label.

感谢您的回答!我使用的是10.5,他们将其添加到了10.6的联机帮助页中。(如果你去苹果的页面,并选择10.5你可以看到它缺少以上位developer.apple.com/library/mac/#documentation/Darwin/Reference/...
ldrg

如果您不知道代码的含义,Unix Signals是您想要的搜索词。
Dave Noonan '18
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.