• 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: testing the current bootstrap context?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: testing the current bootstrap context?


  • Subject: Re: testing the current bootstrap context?
  • From: Michael Smith <email@hidden>
  • Date: Thu, 9 Apr 2009 20:42:01 -0700


On Apr 9, 2009, at 9:30 AM, Bill Janssen wrote:

Michael Smith <email@hidden> wrote:
It's usually straightforward for the daemon to vend the appropriate
self-manipulation functionality; frequently you want to gate this with
application-specific logic anyway.

Well, the daemon does a lot of things, but what I'm concerned with is
stop, start, and restart.

Why do you need 'stop'?  Why can't you just ask the daemon to enter a state where it refuses requests?

If you ask the daemon to operate on itself, you can easily implement:

 • start accepting requests
 • start refusing requests (except for starts)
 • exit (and cause launchd to restart, e.g. for updates)
 • unload yourself (for uninstall)

 = Mike

--
The lyf so short, the craft so long to lerne -- Chaucer





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

This email sent to email@hidden

  • Follow-Ups:
    • Re: testing the current bootstrap context?
      • From: Bill Janssen <email@hidden>
References: 
 >testing the current bootstrap context? (From: Bill Janssen <email@hidden>)
 >Re: testing the current bootstrap context? (From: Bill Janssen <email@hidden>)
 >Re: testing the current bootstrap context? (From: Quinn <email@hidden>)
 >Re: testing the current bootstrap context? (From: Bill Janssen <email@hidden>)
 >Re: testing the current bootstrap context? (From: Michael Smith <email@hidden>)
 >Re: testing the current bootstrap context? (From: Bill Janssen <email@hidden>)

  • Prev by Date: Re: testing the current bootstrap context?
  • Next by Date: Re: testing the current bootstrap context?
  • Previous by thread: Re: testing the current bootstrap context?
  • Next by thread: Re: testing the current bootstrap context?
  • Index(es):
    • Date
    • Thread