launchctl list의 상태 열에있는 숫자는 무엇을 의미합니까? 관련된 시작된

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 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.


답변