I have a launchd
agent set up using the WatchPaths feature. It looks something like
<?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>com.my.label</string>
<key>LowPriorityIO</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>-c</string>
<string>PROGRAM HERE</string>
</array>
<key>QueueDirectories</key>
<array/>
<key>ThrottleInterval</key>
<integer>10</integer>
<key>WatchPaths</key>
<array>
<string>PATH HERE</string>
</array>
</dict>
</plist>
Every 10 seconds, I get a message to the console, like
com.apple.launchd.peruser.501: (com.my.label) Throttling respawn: Will start in 10 seconds
Is this normal? Will it affect my system to have these messages written to the logs every 10 seconds? There are no errors, and the agent itself seems to work just fine.
QueueDirectories
setting truly blank? If you are using any, make sure they are empty by the time your process ends.