Closed Bug 620530 Opened 14 years ago Closed 14 years ago

mac buildslave startup: delay cltbld login until puppet is done

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: dustin, Unassigned)

Details

(Whiteboard: [puppet])

The mac startup process currently proceeds in two distinct threads, with a very basic "join" operation at the end. The root launchd (pid 1) runs (among other things) the puppet plist, which configures the system. Simultaneously, the cltbld user is set to automatically login, and during that process its launchd daemon starts up, reads (among other things), /Library/LaunchAgents. One of these agents is to start the buildslave. The synchronization is this: when puppet finishes, it touches /var/puppet/run/puppet.finished. The buildslave service uses WatchPaths to watch this file, and starts a buildslave every time it is touched. The proposal in this bug is to instead delay the automatic login until puppet has finished running. Then no synchronization would be required, and the cltbld launchd would only load its services *after* they had been properly arranged by puppet. I don't even know if this is possible.
Assignee: dustin → nobody
You can't do this on OS X except by having the cltbld launchd all be controlled by a meta launchd that spins waiting for the system's to finish.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
To clarify, there's no way to delay the automatic login for any purpose.
Forward-link to bug 658678, actually, where I found that this is possible (the key being to *disable* the loginwindow service until you want it to run).
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.