Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: StartupItem & Mac OS X 10.4 & later



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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >StartupItem & Mac OS X 10.4 & later (From: Stephane Sudre <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.