On 11 Jun '08, at 12:05 AM, Alexander Reichstadt wrote:
launchd gives me a hard time with a daemon I need to keep running. It prints "Throttling respawn" to my console forever. Because of that I wrote a script that does nothing but print "test" and sleep before exiting to somehow understand why launchd does that.
It looks like "launchctl submit" expects that the task will never quit; the man page says A simple way of submitting a program to run without a configuration file. This mechanism also tells launchd to keep the program alive in the event
of failure.So if your program exits it will relaunch it; and if that happens too often, it'll start to throttle the rate at which it does that and print those warnings.
If you want to use a program that runs and quits, and presumably schedule it to run at certain times, you'll need to create a property list that defines its behavior (see man 5 launch.plist).
—Jens
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]