I have a couple of launchd jobs starting a rsync wrapper script. They have been running fine for at least 3 years, but now most of them fail with exit status -9. All jobs are configured like this (with different rbackup.py parameters):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>net.snafu.rs1_core</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/python3</string>
<string>/Users/snafu/Library/Scripts/rbackup.py</string>
<string>rs1_core</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Minute</key>
<integer>30</integer>
<key>Hour</key>
<integer>10</integer>
<key>Weekday</key>
<integer>7</integer>
</dict>
<key>StandardOutPath</key>
<string>/Users/snafu/Library/Logs/launchd.log</string>
<key>StandardErrorPath</key>
<string>/Users/snafu/Library/Logs/launchd.log</string>
</dict>
</plist>
The launchd.log
file does not contain any hint, and 2 out of 10 jobs still run fine. When I start the rsync wrapper with the respective parameters, it works, too. How can I debug this phenomenon?
rbackup.py
) to write a log entry immediately at the beginning so we know whether the script gets started at all?