• 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: Can we write Mac Servies like We write for Windows services
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can we write Mac Servies like We write for Windows services


  • Subject: Re: Can we write Mac Servies like We write for Windows services
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 4 Apr 2008 09:37:53 -0700


On 3 Apr '08, at 11:33 PM, Andrew Farmer wrote:

The equivalents of Windows services are login items and startup items

StartupItems are deprecated. Instead, you register daemons with launchd by putting a plist in /Library/LaunchDaemons/.


A "login item" is a user-visible application that gets launched when the user logs in. Generally the users' in charge of configuring those. A background process should register with launchd, by putting a plist in ~/Library/LaunchAgents/.

Management by launchd has a lot of advantages over StartupItems and login items, in that the processes can be configured to launch only on demand (i.e. if there's an incoming TCP connection, or if a folder is modified) and to be quit when they're idle.

The Apple technote referred to by one of the previous people in this thread is the best place to start reading.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >Can we write Mac Servies like We write for Windows services (From: "Ghufran Ahamad" <email@hidden>)
 >Re: Can we write Mac Servies like We write for Windows services (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: core data - beyond the simple example
  • Next by Date: Re: core data - beyond the simple example
  • Previous by thread: Re: Can we write Mac Servies like We write for Windows services
  • Next by thread: Re: Can we write Mac Servies like We write for Windows services
  • Index(es):
    • Date
    • Thread