site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=1SFJGpMIuuaq3xscK1VUXx/P3wwDzcGCUbeaW3k043M=; b=BVNWp0LipwtVSNmUsN7k6DaJ/AU6yo6ToNXQlu/mMzqlIqcdmdsc9u6OfZXOmCv9rq QHbr3EA0oA7ifF3wDgx0Rxtz8ksZKu3qkkh2ksLXL+hMDCcRGt8eOk9JSRpoUOCpAWOn w18Gd02d/+qrNDbRD7tveVjqhOf7aqaqrcVtI= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ppDDus9IUYQ2Lkc+ARTxDNjX2MwejRYVqX5wxlwxk2YZLcSNSsuSo23RRzlfR6gYi+ QHCRXq3uWu1moEoOoKjOs7hhamp0mABtLZtB6njd3JO9ECsZFI2AtpyacagYgiYIsReq lw5fQ81jKReoEb97J4tJBQOuJUihjH9p0QJZA= On Tue, Oct 27, 2009 at 4:45 AM, Anil Kumar K <k_anilk@yahoo.com> wrote:
I have a daemon which has to provide some service. I would like to delay providing this service till completion of the OS startup (all OS daemons are up and running) so that it does not affect boot time. Service initialization is a cpu intensive activity. Is there any OS event to know whether the startup is completed or not?
Does the login screen have some particular process name? Perhaps you could poll for its existence, then sleep a few seconds, and iterate until it appears. However the user might have selected automatic login - to handle that one would need to watch for the Finder to appear as well. Mike -- Michael David Crawford mdcrawford at gmail dot com GoingWare's Bag of Programming Tricks http://www.goingware.com/tips/ _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Michael Crawford