In general, I'd recommend using the new print subcommand for this kind of 
system administration-ish stuff. The semantics around the old commands (like 
load, unload, list, etc.) were highly context-dependent, and that led to tons 
of situations where people had perfectly reasonable expectations (such as 
Raunak's) about being able to query a job loaded in a certain session, but due 
to (mumble mumble Mach, POSIX, bootstraps, sockets), you'd get completely 
different behavior.

The new print subcommand requires you to specifically target sessions and jobs 
(now called domains and services) rather than trying to sniff out which one you 
mean based purely on context. And it prints way more information, such as where 
the service was loaded from on-disk (if it came from on-disk), much more 
detailed last exit status, and more.
-damien

On 11 Apr, 2015, at 04:33, Thomas Clement <tclement...@gmail.com> wrote:
> hmm ok, on 10.10 you can try the following:
> 
> > launchctl print user/0/com.mycompany.myAgent
> 
> > launchctl print gui/0/com.mycompany.myAgent
> 
> 
> On 11 Apr 2015, at 13:20, Raunak Poddar <raunak.pod...@gmail.com 
> <mailto:raunak.pod...@gmail.com>> wrote:
> 
>> $ launchctl -u root list
>> Unrecognized subcommand: -u
>> (On Mac OS X 10.10)
> 
> _______________________________________________
> launchd-dev mailing list
> launchd-dev@lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/launchd-dev

_______________________________________________
launchd-dev mailing list
launchd-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/launchd-dev

Reply via email to