Using the command you sent, I get the following when I have an active remote control session:
launchctl stop error: No such process
sounds like it's not letting launchctl manage the service when there's an active session?
I don't see an entry for that particular name. I see these LANDesk types in the list, but I was hoping for a single command to stop and a single command to restart.
PID Status Label
25893 - [0x0-0x1fd1fd].com.landesk.ldms.observe
25891 - 0x10dde0.ldremote
25754 - 0x10d4e0.ldremote
25751 - 0x10d3e0.ldremote
25688 - 0x10cbf0.ldremote
25684 - 0x10dce0.ldremote
54 - 0x10dbe0.ldremote
Is there another method for restarting the entire agent?
where are you seeing that list? this script has worked fine for me many times, but I haven't tried doing it to a system that's currently being remote controlled (idea being that I use it to reset remote control so that I can remote control... I don't know why you'd want to reset remote control while you're remote controlling).
I ran 'launchctl list' to get a list of stuff that could be stopped. com.landesk.remote doesn't show up in that list. I was trying to kill an active running session to make sure the command worked .
jack-coates-computer:~ jackcoates$ sudo launchctl list
jack-coates-computer:~ jackcoates$uname -a
Darwin jack-coates-computer.local 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386
Maybe you see something different on Leopard? I don't have a copy of that OS.