site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com 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. 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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? This email sent to site_archiver@lists.apple.com