Re: StartupItem & Mac OS X 10.4 & later
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com In message <11f1361ddb8be8f38245c806f2876b96@intego.com>, 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 (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)
-
seebs@plethora.net