[launchd-dev] Thanks for the WatchPath behavior change

Nathan Duran launchd at khiltd.com
Wed Dec 5 10:54:37 PST 2007


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. 


More information about the launchd-dev mailing list