What does launchd do, if the application in "Program" section was not found?
If in ~/Library/LaunchAgents/com.myprogram.plist i define "RunAtLoad: TRUE", but specify non existing application as "Program" parameter, what scenario does launchd follow? Does it just skip that plist file? Or does it try to find the program binary file in some other directory? what impact does it have on the speed of the system boot? Thanks
On 2010 Oct 27, at 02:25, eveningnick eveningnick wrote:
If in ~/Library/LaunchAgents/com.myprogram.plist i define "RunAtLoad: TRUE", but specify non existing application as "Program" parameter, what scenario does launchd follow?
Try it. It will probably keep looking for your binary and write a message to your console log every 10 seconds. As you can find in the list archives, we've discussed this before, but the opinion of the developers seems to be that this is the optimal behavior. "Provide an uninstaller."
what impact does it have on the speed of the system boot?
Probably adds 2 milliseconds or so.
2010/10/27 Jerry Krinock <jerry@ieee.org>:
Try it. It will probably keep looking for your binary and write a message to your console log every 10 seconds. As you can find in the list archives, we've discussed this before, but the opinion of the developers seems to be that this is the optimal behavior. "Provide an uninstaller."
what impact does it have on the speed of the system boot?
Probably adds 2 milliseconds or so.
Thanks Jerry, i really should've looked through mailing list archive before posting George
for example, this morning i got an exit status of 256 for a lauchagent, reaging system;log gave me : Oct 27 05:45:00 imyt com.apple.launchd.peruser.501[124] (org.ytho.webkit.latest[4319]): posix_spawn("/Users/yt/bin/org.ytho.webkit.latest.zsh", ...): No such file or directory launchd was unable to find the script "/Users/yt/bin/org.ytho.webkit.latest.zsh" because it doesn't exist altought the "/Users/yt/bin/org.ytho.webkit.latest.rb" (same name different extension) does exist...
On Oct 27, 2010, at 6:08 AM, Yvon Thoraval wrote:
for example, this morning i got an exit status of 256 for a lauchagent, reaging system;log gave me :
Oct 27 05:45:00 imyt com.apple.launchd.peruser.501[124] (org.ytho.webkit.latest[4319]): posix_spawn("/Users/yt/bin/org.ytho.webkit.latest.zsh", ...): No such file or directory
launchd was unable to find the script "/Users/yt/bin/org.ytho.webkit.latest.zsh" because it doesn't exist altought the "/Users/yt/bin/org.ytho.webkit.latest.rb" (same name different extension) does exist…
strcmp("org.ytho.webkit.latest.rb", "org.ytho.webkit.latest.zsh") != 0 :) -- Damien Sorresso BSD Engineering Apple Inc.
participants (4)
-
Damien Sorresso
-
eveningnick eveningnick
-
Jerry Krinock
-
Yvon Thoraval