Re: Unable to unload Launch Daemon using Cocoa Application.

2008-03-23 Thread Chris Hanson
On Mar 22, 2008, at 9:03 AM, JanakiRam wrote: I've used Authorization Services to perform unload of Launch Daemon ( previlaged action ). Authorization Services isn't meant to be used in the way you're using it. You're using AuthorizationExecuteWithPrivileges to perform an arbitrary operati

Re: Unable to unload Launch Daemon using Cocoa Application.

2008-03-23 Thread JanakiRam
HI Jen, Thanks for the initial reply. I've tried to unload my launch daemon from shell , it is unloading without any error. *$ sudo lauchctl unload -w /Library/LaunchDaemon/com.mycompany.mydaemon.plist* When i executed lauchctl without sudo , i got the same problem. I guess lauc

Re: Unable to unload Launch Daemon using Cocoa Application.

2008-03-23 Thread Jens Alfke
On 23 Mar '08, at 7:00 AM, JanakiRam wrote: I'm developing a cocoa application which needs to unload my Launch Daemon for one particular requirement. I've used Authorization Services to perform unload of Launch Daemon ( previlaged action ). But couldn't succeed in this. I'm getting

Re: Unable to unload Launch Daemon using Cocoa Application.

2008-03-23 Thread JanakiRam
It seems no one had came across such a situation. Can any one from apple help me ? Please help me to solve this problem. Thanks in Advance. -JanakiRam. On 3/22/08, JanakiRam <[EMAIL PROTECTED]> wrote: > > Hi All, > >I'm developing a cocoa application which needs to unload my Launch > Da

Unable to unload Launch Daemon using Cocoa Application.

2008-03-22 Thread JanakiRam
Hi All, I'm developing a cocoa application which needs to unload my Launch Daemon for one particular requirement. I've used Authorization Services to perform unload of Launch Daemon ( previlaged action ). But couldn't succeed in this. I'm getting the following error on executed my code. *