• 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: CocoaEcho
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CocoaEcho


  • Subject: Re: CocoaEcho
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 14 Jun 2010 13:15:11 -0700

On Jun 14, 2010, at 12:09 PM, Nick Zitzmann wrote:

> Use launchd's launch daemons feature.

There’s an Apple tech note on daemons and agents — required reading if you want to get into this. Search for it in the Xcode doc viewer.

The difference between the two is that a daemon is per-machine while an agent is per-user. A daemon starts at boot time and persists across user logins (or when no user is logged in); an agent starts when a user logs in and quits when the user logs out (and there can be multiple agents running at once if several users are logged in.)

Agents are safer because they run as a normal user. Daemons often run as root, so a security bug in a networked daemon could cause the whole machine to get pwned. One workaround is to create a new user account just to run your daemon and configure its launchd plist to run as that user. Many of the system daemons like Apache do that.

—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >CocoaEcho (From: "B. Mitchell Loebel" <email@hidden>)
 >Re: CocoaEcho (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Opening a file for writing text in /private/var/log
  • Next by Date: Re: Adding attributes to NSMutableAttributedString
  • Previous by thread: Re: CocoaEcho
  • Next by thread: Re: CocoaEcho
  • Index(es):
    • Date
    • Thread