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
I got this error while trying to run mono to start a local webserver. Turns out the fix was to not use the mono path given by "which mono" (which is a symlink: /Library/Frameworks/Mono.framework/Versions/Current/Commands/mono
) but the actual location of the exe (in my case /Library/Frameworks/Mono.framework/Commands/mono
).
[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.
To view a description of all error codes, type
launchctl error <insert numerical error code here>
e.g.:
% launchctl error 77 77: No locks available