Re: StartupItem & Mac OS X 10.4 & later
Re: StartupItem & Mac OS X 10.4 & later
- Subject: Re: StartupItem & Mac OS X 10.4 & later
- From: email@hidden (Peter Seebach)
- Date: Tue, 10 Oct 2006 12:26:08 -0500
In message <email@hidden>, Stephane Sudre writes
:
>* Stupid question:
>Can launchd be used to replace any kind of StartupItem?
Not without, at least in some cases, rewriting the startupitem.
>- it launches only a daemon, it can't load kernel extensions at the
>same time (maybe you can launchd a script?)
You could probably do something like that.
>- there is no dependency mechanism such as "only start when network is
>initialized".
Right. You have to rework your daemon so that it calls for services and
reacts intelligently when they aren't there (for instance, waiting until
they become available). Unfortunately, not all services provide any kind
of notification for such things, most noticably disk access.
The general case (applying to laptops that might move in and out of wireless,
etcetera) is hard enough to make this probably unfixable, which is rather
rough luck for those of us who have existing services we just want to run
on a single server with a predictable configuration, and who are reconciled to
the fact that, if the prerequisites aren't working, we will need to do
SOMETHING manually anyway to fix it.
-s
_______________________________________________
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