Meaning of launchd exit codes

Advertisement
I have a daily job (rsnapshot) that runs via launchd scheduling and appears to execute correctly. But the system.log contains the following launchd (error) message:
Exited with exit code: 2
What does this mean? Is it an error? Is there a reference list of launchd exit codes?
Advertisement

Replay

With the rsnapshot logfile configured, I found a modest number of warnings like these:
WARNING: Could not lchown() symlink "/path/to/some/file"
So it appears that there is an attempt by rsnapshot to change the owner / group of these symbolic links. For the most part, they don't seem to be too important, but these would be my only concern:
WARNING: Could not lchown() symlink "/path/to/etc/localtime"
WARNING: Could not lchown() symlink "/path/to/etc/resolv.conf"
WARNING: Could not lchown() symlink "/path/to/etc/squirrelmail/plugins"
WARNING: Could not lchown() symlink "/path/to/lib/libdb-4.dylib"
WARNING: Could not lchown() symlink "/path/to/lib/libdb.dylib"
WARNING: Could not lchown() symlink "/path/to/lib/libMrm.4.dylib"
WARNING: Could not lchown() symlink "/path/to/lib/libMrm.dylib"
WARNING: Could not lchown() symlink "/path/to/lib/libUil.4.dylib"
WARNING: Could not lchown() symlink "/path/to/lib/libUil.dylib"
WARNING: Could not lchown() symlink "/path/to/lib/libXm.4.dylib"
WARNING: Could not lchown() symlink "/path/to/lib/libXm.dylib"
I looked at this directory and it has not been modified for 10 months. A little history is in order: we moved out entire infrastructure from NetBSD to Apple and /lib seems to be a carryover from the older system. Please advise if I am missing something. These error messages appear to be benign.