I want to run a unison sync service running in the background whenever I login. But the status code of my agent is 78
. I don\'t know why, I tried some fix posted on
[Ran into this problem as well, so documenting what I've found]
"78" is the last exit code of the job you're running. From man launchctl
:
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 run- ning. 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 stopped the job. Thus, "-15" would indicate that the job was terminated with SIGTERM. The third column is the job's label. If [label] is specified, prints information about the requested job.
I.e. you need to read the documentation (or source code) for whatever job you're starting. (In my case, mysqld)
It's worth noting that "78" is mentioned as a standard exit code on Linux, indicating a configuration error. So take a look at your job configuration (and error logs?) to see if you have something misconfigured.