Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.3: Information on new process startup mechanism System

While investigating another hint I stumbled upon a change to the Panther boot process. To quote from Apple's knowledge base article on the topic:

In earlier versions of Mac OS X, daemons were launched primarily using the startup items located in /System/Library/StartupItems. In Mac OS X version 10.3, a new mechanism was introduced to simplify the launching process and improve its flexibility. While the startup item mechanism still exists, its use is being phased out over time.
I'm sure a few people will be interested in this change, especially developers who are using StartupItems as the mechanism for loading their daemons. Here's the link to the documentation: System Startup: The Boot Process

[robg adds: This document also has a basic description of what each of the common system daemons and core startup items do...]
    •    
  • Currently 2.50 / 5
  You rated: 4 / 5 (6 votes cast)
 
[9,133 views]  

10.3: Information on new process startup mechanism | 4 comments | Create New Account
Click here to return to the '10.3: Information on new process startup mechanism' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Information on new process startup mechanism
Authored by: saint.duo on Nov 16, '03 03:25:09PM
This is awesome, as it simplifies the startup items system a lot for third party stuff. I use one to start up filemaker server on our xserve upon boot.

The link with anchor to the relevant information is: http://developer.apple.com/documentation/macosx/Conceptual/BPSystemStartup/Concepts/BootProcess.html#//apple_ref/doc/uid/20002130/CJBBICAB

---
--
duo

[ Reply to This | # ]

10.3: Information on new process startup mechanism
Authored by: kerbaugh on Nov 17, '03 09:13:18AM

There is cause for concern here as well, at least if Apple doesn't add a lot more functionality to this mechanism. There appears to be no way of controlling the order of startup. I've created my own StartupItems and use one from a third party. They are all scripts. I suppose that the command could be a path to a script but without a way to control startup order, even Apple's StartupItems would fail. I don't see any start and stop mechanism either. As of Jaguar they hadn't even implemented the StopService half of the StartupItems mechanism. Does anyone know if StopService is invoked when Panther shuts down? Anyway, I had found the mach_init.d directory but not the documentation; thanks for the link.



[ Reply to This | # ]
10.3: Information on new process startup mechanism
Authored by: MattHaffner on Nov 18, '03 01:26:22AM

This won't replace StartupItems. It only changes how daemons are launched and removes them from StartupItems. There are some 'stub' scripts for those that moved, but most of the StartupItems are still quite functional in Panther.

This new mechanism allows them to be loaded on-demand, but still be registered to respond to requests very early in the boot or user login process. The kernel will (re)start or wake a daemon for requests as needed.



[ Reply to This | # ]
10.3: Information on new process startup mechanism
Authored by: kerbaugh on Nov 18, '03 02:52:52AM
   Uhh ... yes. I am using it with no problems. I was referring to the following line from the original hint:
While the startup item mechanism still exists, its use is being phased out over time.
While I suppose there is a possibility they are only referring to the use of StartupItems to launch daemons, that isn't what the web page says.

[ Reply to This | # ]