Agents and daemons [DOUBT]
Agents and daemons [DOUBT]
- Subject: Agents and daemons [DOUBT]
- From: Abhinav Tyagi <email@hidden>
- Date: Fri, 25 Mar 2011 09:06:15 +0530
Hi,
I am new to background services or agents/daemons. I have been through
the apple's technical note TN2083 entitled "Daemons and Agents".
I have few doubts such as:
(1) i am not able to launch an agent using launchctl in same way as i
do launch my daemon. Also when I use LimitLoadToSessionType for agent
plist, using launchctl to load the agent from terminal says "nothing
to load" while removing this property successfully loads the
executable.
(2) on copying the plist to /Library/LaunchAgents however launches the
agent successfully and works as desired which i have noticed from
system console logs. Does it mean the agents are restricted from
launching from the terminal. If yes then whats the logic behind the
fact that Daemons are allowed to register with launchd using launchctl
but the agents are not?
(3) And finally the most important thing: we specify sockets in the
plist to register with the launchd on which our agent/daemon's request
are received. But how is it possible for every person to know if any
service is already using that port number or not because it is
possible to have an existing daemon loaded and using same port and
will be providing services to the applications. Any solution exist for
this?
Thanks for your valuable time in Advance.
Abhinav
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden