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

ldr*_*drg 19 mac-osx launchd launchctl

launchctl 在 launchctl 列表输出中有一个“状态”列。联机帮助页或任何相关的 launchd 联机帮助页未提及此列或其含义。

Sve*_*ven 20

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

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 represents 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.
Run Code Online (Sandbox Code Playgroud)

  • 如果您不知道这些代码的含义,[Unix Signals](https://people.cs.pitt.edu/~alanjawi/cs449/code/shell/UnixSignals.htm) 就是您想要的搜索词。 (2认同)