• 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: StartupItems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: StartupItems


  • Subject: Re: StartupItems
  • From: email@hidden
  • Date: Sun, 4 Jun 2006 17:06:36 -0700


On Jun 3, 2006, at 7:25 PM, Peter Seebach wrote:

Let's say that you're launching something that requires a service on
port 1234.

In the launchd world, you connect to port 1234.  That's your service
availability check - either you get a connection refusal in which
case your depended service is not installed and you can abort right
now with an error, or you will block until the service is brought up
by launchd, which will have noticed you looking for it.

And here's the problem. In some cases, what happens is I get a refusal,
because launchd launched my program BEFORE SOMETHING ELSE WAS READY.


So, I get told "sorry, no such service", and there's no way for me to find out
"... but there will be in 18 seconds" without writing new code. (Actually,
the Mac doesn't load launchd.plist files until it's done doing the actual
startup work, which is done in rc and StartupItems. But if we were in the
launchd world, this is what WOULD happen.)

Well, if the service that listens on 1234 wasn't ready... then your service would block. How does this result in your service seeing "sorry, no such service?


JP



--
Blood is thicker than water... and much tastier.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: StartupItems
      • From: email@hidden (Peter Seebach)
References: 
 >Re: Fwd: StartupItems (From: email@hidden (Peter Seebach))

  • Prev by Date: Re: StartupItems
  • Next by Date: Re: Re2: GNU-Darwin: missing code in Darwin2
  • Previous by thread: launchd's job jettison logic (Was: Re: StartupItems)
  • Next by thread: Re: StartupItems
  • Index(es):
    • Date
    • Thread