[launchd-dev] Disabling of launchd job if program is missing
Vera Tkachenko
ivira at macpaw.com
Tue Jul 6 02:29:57 PDT 2010
Hello,
in my program I use quite a simple launchd jobs to perform some tasks. This job is configured to run some tool when certain conditions are met. All works fine except one case. When user deletes this tool (e.g. after incorrect uninstall of program), then launchd fails to find tool and therefore fails to run my job.
The following error is logged:
25/04/2010 23:26:11 com.apple.launchd.peruser.501[224] (<job label>[89736]) posix_spawn(<path to tool>, ...): No such file or directory
The problem is that after this launchd keep trying to run this job. Why it just don't disable this job? If this is desired behavior, is it possible to configure it somehow to disable job if it's tool is missing?
This is not just my software problem. Lots of other programs have such issues.
--
Thanks,
Vera Tkachenko
More information about the launchd-dev
mailing list