[launchd-dev] Thanks for the WatchPath behavior change
Dave Zarzycki
zarzycki at apple.com
Wed Dec 5 12:44:50 PST 2007
On Dec 5, 2007, at 10:54 AM, Nathan Duran wrote:
>
> On Dec 5, 2007, at 10:50 AM, Jeremy Reichman wrote:
>
>> One question though: since removing the path also runs the job, is
>> there a
>> way to avoid that specific behavior? To only have the job run if
>> the path is
>> created or is modified in place (without deletion)? I know that
>> that case is
>> probably one where the QueueDirectory key should be used instead,
>> but I
>> figured I'd ask.
>
> Don't know the answer to that, but it'd be simple enough (and in all
> likelihood highly advisable) to throw a quick sanity check at the
> top of the script that immediately exits if whatever it needs isn't
> there.
I'd agree with Nathan. That is the best thing you can do for Leopard.
We might fix that in a future release.
davez
More information about the launchd-dev
mailing list