Re: Can we write Mac Servies like We write for Windows services
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