• 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: Detecting login/logout?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting login/logout?


  • Subject: Re: Detecting login/logout?
  • From: j o a r <email@hidden>
  • Date: Sat, 1 Nov 2003 13:40:16 +0100

On 2003-11-01, at 12.59, Wade Tregaskis wrote:

The problem with quitting the daemon between logins and logouts is that the cost of establishing and configuring the networking is rather high, not to mention the inconvenience of having to shut down any executing tasks and transport them to another machine, etc.

Don't mix up startup items and login items. Startup items are executed by root in the root context, login items are executed by the user in the login context. Startup items are killed when the system is shut down, login items when the user logs out.

Your daemon should of course be a startup item - ie. not affected by users logging in and out. Any user level applications you might have can connect to and communicate with the daemon when a user is logged in.

Documentation on startup items (Panther):

<file:///Developer/Documentation/MacOSX/Conceptual/BPSystemStartup/ index.html>

j o a r
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Detecting login/logout?
      • From: Stéphane Sudre <email@hidden>
    • Re: Detecting login/logout?
      • From: Wade Tregaskis <email@hidden>
References: 
 >Re: Detecting login/logout? (From: Wade Tregaskis <email@hidden>)

  • Prev by Date: Re: Detecting login/logout?
  • Next by Date: Re: Detecting login/logout?
  • Previous by thread: Re: Detecting login/logout?
  • Next by thread: Re: Detecting login/logout?
  • Index(es):
    • Date
    • Thread