• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: launchd daemon Throttling respawn log messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launchd daemon Throttling respawn log messages


  • Subject: Re: launchd daemon Throttling respawn log messages
  • From: Alexander Reichstadt <email@hidden>
  • Date: Thu, 12 Jun 2008 10:10:29 +0200

Thank you, the process needs to be running permanently, the script was just for testing. It works on both, 10.4 and 10.5 without throttling now. I had used Lingon but that doesn't create the plist the way it needed to be.

Alexander



On Jun 11, 2008, at 16:58 , Jens Alfke wrote:


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

References: 
 >launchd daemon Throttling respawn log messages (From: Alexander Reichstadt <email@hidden>)
 >Re: launchd daemon Throttling respawn log messages (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: argument checks
  • Next by Date: Re: Issue with displaying URI prefixes on child elements using NSXML
  • Previous by thread: Re: launchd daemon Throttling respawn log messages
  • Next by thread: Re: public release of Xcode 3.1?
  • Index(es):
    • Date
    • Thread