Hi All,

I have a setup in which when the Mac reboots, i will be launching a script through launchd. 
This daemon writes multiple plist files in /Library/LaunchAgents and tries to load the same for all the users currently logged in.
The loading of the agents is failing with "launch_msg(): Socket is not connected".
However if i run the script in Terminal as root user, the error does not come.
Any idea why this is happening with launchd triggered script?

Thanks
Arun KA