The basic problem I am trying to solve is that a Norton Anti-Virus process got stuck soaking up one full processor, and I had to kill it. (there was also a message on the norton app that said something like "Norton Anti virus can't continue, please reboot to continue protection") I don't want to reboot because I have lots of state (ssh tunnels, command history in a bunch of terminal sessions, etc) that is useful and will be lost on reboot.
I also don't want to be running around with broken anti-virus protection, so I had hoped launchctl would be able to give me a list of services that told me which ones were running, which ones were not running and which ones were configured to run as a daemon on start. Then upon finding a not running norton service that should be running I could simply restart it (or confirm that it had restarted itself).
Searching for answers on this is difficult because I get swamped by "list of running processes" results.
I've seen answers that talk about launchctl bstree and launchctl bslist which look close, but I'm on Sierra, and the man page for launchctl has this:
LEGACY SUBCOMMANDS
Subcommands from the previous implementation of launchd are generally available, though some may be unimplemented. Unimplemented sub-
commands are documented as such.
...
bslist [PID | ..] [-j]
This subcommand is not implemented and has been superseded by the print subcommand, which provides much richer information.
...
bstree This subcommand is not implemented and has been superseded by the print subcommand, which provides much richer information.
That's all well and good, but I can't see how the print command lists anything. It seems to require a specific service name, which hardly seems like a replacement for a "list" command. Is there a way to get a list out of print?
Environment: macOS Sierra