I Have a plist file with some job:
<dict>
<key>Label</key>
<string>StartScript</string>
<key>Program</key>
<string>/Users/ie54553/Desktop/script.sh</string>
<key>StartInterval</key>
<integer>10</integer>
<key>ExitTimeOut</key>
<integer>30</integer>
<key>StandardOutPath</key>
<string>/tmp/Out.log</string>
<key>StandardErrorPath</key>
<string>/tmp/Err.log</string>
</dict>
The problem is that the script.sh is being executed each 10 sec over and over, and doesn't stop the execution after the ExitTimeOut time (30 sec)
From some reason the ExitTimeOut doesnt work ...
Any idea how I can kill the job / execution ?
Tanks
This is not what
ExitTimeOutis for. When unloading a joblaunchdsends the signalSIGTERMto the process. Should the job not terminate withinExitTimeOutseconds (20 seconds by default), launchd will send signalSIGKILLto force-quit it.launchdhas no means to terminate a job after a given timeout.