Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

justdan0227

macrumors newbie
Original poster
Apr 10, 2010
2
0
How do you control a launchctl plist to not respawn on an error. I want to download a file from my server if it exists once a day. If the file is not there I do not want the plist to respawn.

I have tried KeepAlive and SucessfulExit and can't keep the program from respawnning if the ftp fails.
 
Post the command you're executing, exactly as it appears in your plist. Better yet, post the entire plist contents.

The solution may be as simple as wrapping the ftp command in a shell command that always returns success.
 
The OP said "once a day". It took that to mean the plist is intended to run at a once-daily scheduled time using StartCalendarInterval.

As opposed to: keepAlive which will make sure it's restarted and keeps running.
These can co-exist, a calendar interval or a start interval combined with keep alive will keep the process running.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.