• 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: adding plist file in /Library/LaunchAgents...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: adding plist file in /Library/LaunchAgents...


  • Subject: Re: adding plist file in /Library/LaunchAgents...
  • From: Michael Babin <email@hidden>
  • Date: Mon, 22 Jan 2007 10:44:44 -0600

On Jan 20, 2007, at 2:53 AM, Amit Jain wrote:

Actually i have made an application that is a background process.And i have
to launch that application every time when user login or restart the
mac.Butthe peoblem what i am facing is that the application launches
only when i
restart the mac but on logoff and again login it tries for 10 times and
fails by giving the following error :
CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port =
0x3303, name = 'com.yourcompany.iTunesDroper.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.
iTunesDroper[313] CFLog (99): CFMessagePortCreateLocal(): failed to name
Mach port (com.yourcompany.iTunesDroper.ServiceProvider).


My application has a window thats why i have kept it in LaunchAgents instead
of LaunchDeamons. Everything works fine but i am stuck due to above reason
please help if u can.Thanks in advance.

From the file /usr/include/servers/bootstrap_defs.h:

#define	BOOTSTRAP_SERVICE_ACTIVE		1103

Given that error and the fact that you say it happens at login/ logoff, but not when you restart the Mac, I would guess that your "service" is started/registered when the machine is restarted (the first user login occurs?), but is never stopped/unregistered. I can't tell you why the service is never stopped/unregistered and what you need to do to get it to be stopped/registered, but hopefully this provides an idea of where to focus.

- Michael

--
Michael Babin email@hidden
Order N Development, LLC http://www.orderndev.com/
Goldfish Aquarium for Mac: http://www.lifeglobe.com/product/ index.php?pltid=2&ref=OrderNDev


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >adding plist file in /Library/LaunchAgents... (From: "Amit Jain" <email@hidden>)

  • Prev by Date: Re: Regarding launching an application at startup of mac.
  • Next by Date: Re: NSURLConnection and https
  • Previous by thread: adding plist file in /Library/LaunchAgents...
  • Next by thread: decimal coredata and 1000 limit
  • Index(es):
    • Date
    • Thread