• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: lanuchd questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: lanuchd questions


  • Subject: RE: lanuchd questions
  • From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
  • Date: Tue, 21 Oct 2008 07:24:36 -0400
  • Thread-topic: lanuchd questions

On Monday, October 20, 2008 4:43 PM Jason Coco wrote:
> On Oct 20, 2008, at 16:34 , Karan, Cem (Civ, ARL/CISD) wrote:
>
> > Truthfully, I'd rather petition Apple to make it a part of
> launchd.
> > The
> > moment we have dependencies, then we have to worry about cycles
> > (deadlock), deciding what to do if a process that we're
> dependent on
> > goes down, etc.  And, now that I'm thinking about it, there
> is another
> > cheesy method to handle the problem.  Write a script that launchd
> > launches that runs your first program.  When that program
> returns, the
> > script submits the other programs to launchd via 'launchctl submit'.
> > Since we haven't put anything into /Library/LaunchDaemons
> or the other
> > 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 you mean you call daemon() or fork() with exit()?

Thanks,
Cem Karan
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: lanuchd questions
      • From: Jason Coco <email@hidden>
References: 
 >lanuchd questions (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)
 >Re: lanuchd questions (From: Dave Zarzycki <email@hidden>)
 >Re: lanuchd questions (From: "Jordan K. Hubbard" <email@hidden>)
 >RE: lanuchd questions (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)
 >Re: lanuchd questions (From: Jason Coco <email@hidden>)

  • Prev by Date: Re: IOObjectRelease: passing null? threadsafe?
  • Next by Date: Re: lanuchd questions
  • Previous by thread: Re: lanuchd questions
  • Next by thread: Re: lanuchd questions
  • Index(es):
    • Date
    • Thread