Re: launchd daemon Throttling respawn log messages
Re: launchd daemon Throttling respawn log messages
- Subject: Re: launchd daemon Throttling respawn log messages
- From: Jens Alfke <email@hidden>
- Date: Wed, 11 Jun 2008 07:58:56 -0700
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden