Mac-Osx

launchctl 列表狀態欄中的數字是什麼意思?

  • June 3, 2020

launchctl 在 launchctl 列表輸出中有一個“狀態”列。聯機幫助頁或任何相關的已啟動聯機幫助頁均未提及此列或其含義。

這是該服務的最後一個退出程式碼。

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.

引用自:https://serverfault.com/questions/311160