Re: adding plist file in /Library/LaunchAgents...
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