site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thread-index: AcZ+bNFRECUjnepgEdqoNQANk21umg== Thread-topic: StartupItems User-agent: Microsoft-Entourage/11.2.3.060209 on 5/23/06 1:33 AM, Peter Seebach wrote:
Launchd will happily spoof local sockets, so I don't see a counterexample there.
Okay. So, when I try to talk to my socket-based service, how do I know whether it's permanently unavailable or just a bit slow?
If it's not configured in launchd, launchd won't be listening on the socket. If it is configured, launchd will start the service on demand without needing an explicit dependency outside the code. If that service requires other services, launchd will take care of those in the same fashion. I think you're too worried about needing special code. Most things just work without any special code. Just connect to the socket you need or make the API call that results in IPC. Launchd will take care of the dependencies for you. No special code is needed. No configuration file is needed for clients. It seems to me the only solid example you've given that launchd doesn't currently take care of automatically is a specific volume coming on-line. File a bug requesting that. I'm quite happy not to need to mess with startupitems for our products anymore. It is much easier now to be confident our product will work as the system changes. -Marc _______________________________________________ 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
Marc Epard