site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=KAks1CJc9O2TIZeiEtX7E5rBCC9YYDCd5nLGumvLt6s=; b=I+2Z7g2au2NNJWDL6MYUVOT0Zo6u0c1DTRFjbmwLBNU+57F/7/y6XAk8ZkT863SQDB kB47riCnjbjHRQUjAqnIyK8Oz5TT12q8LyM0Cf9/bOGLFEv4WJ7um6jlrPdC69fzTYuI a9xEj7m/WLPhx9wh19/QD9GidpeFB9w4hz2YU= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=pMNLnuXVP5NrlwG+TWVi19F1p8tbz/1mbtkbCsRsf2fQV6aulm7FmjPxCCaZKBoXaR WMCUOblo4V0OoN2sCKGagBHX72b6/5G+b/AVWEbdGmp4Khg5NrehqMywnmnLFh0Pz7Js R13CpCcDr/jCjh3/4YU6/EgbK2MCdlk57irC0= On Oct 21, 2008, at 07:24 , Karan, Cem (Civ, ARL/CISD) wrote: On Oct 20, 2008, at 16:34 , Karan, Cem (Civ, ARL/CISD) wrote: The moment we have dependencies, then we have to worry about cycles (deadlock), deciding what to do if a process that we're cheesy method to handle the problem. Write a script that launchd launches that runs your first program. When that program script submits the other programs to launchd via 'launchctl submit'. Since we haven't put anything into /Library/LaunchDaemons launchd places, we get the same effect as using /var/run, so everything is always launched in the correct order each time we reboot. That's kinda what I did... I ended up writing a daemon which was connected to launchd, starts up and does all the initialization stuff. It then actually manages some of the other processes and they all communicate over a unix socket. _______________________________________________ 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 On Monday, October 20, 2008 4:43 PM Jason Coco wrote: Truthfully, I'd rather petition Apple to make it a part of launchd. dependent on goes down, etc. And, now that I'm thinking about it, there is another returns, the or the other Do you mean you call daemon() or fork() with exit()? No, it's a proper launchd daemon. It communicates via its unix domain socket and is pretty much on-demand for that. However, it manages 2 other daemons as well so if they're set to launch-on-start it starts and launches and monitors them. smime.p7s
participants (1)
-
Jason Coco