Re: StartupItems
Re: StartupItems
- Subject: Re: StartupItems
- From: Marc Epard <email@hidden>
- Date: Tue, 23 May 2006 08:28:46 -0500
- Thread-topic: StartupItems
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden