Northern Commander

Launch agents

A pane can list your own launch agents: the programs set to start by themselves for you, among them the Homebrew services you have started. No administrator is needed.

KeyAction
Launch agents in the left paneLaunch agents in the left pane
Launch agents in the right paneLaunch agents in the right pane
⌘OStart launch agent
F8Stop launch agent
⇧F8Disable launch agent
⇧F8Enable launch agent
F4Edit launch agent…
F7New launch agent…
EnterShow or hide launch agents from macOS and apps

Getting there

Launch agents is a row of the places list, and under Show here in each side’s menu of the menu bar: Launch agents in the left pane, Launch agents in the right pane.

What a row says

Column What it holds
Label The agent’s name. Homebrew’s are homebrew.mxcl. and the formula
State running; ready, not running now but started by what Starts says; stopped, until the next login; or disabled
Starts What starts it: at login, every hour, on a schedule, on file change, on demand
Exit code How it last ended. 0 is fine, and below 0 a signal ended it

These are the files in ~/Library/LaunchAgents, loaded or not. A pane too narrow for every column drops them from the right; the line below the list still says why one is stopped and how it last ended.

What the keys do

Starting, stopping and disabling ask first, and none changes the agent’s file.

  • ⌘O starts it, enabling it if it was disabled.
  • F8 stops it until the next login, when it comes back.
  • ⇧F8 stops it and keeps it from starting, even at login, until it is enabled. On an agent that is disabled, the same key is ⇧F8, and the key bar says which.
  • F4 opens a form with its program, its arguments, and when it starts: at login, again whenever it ends, and every so many minutes, hours or seconds. Saving rewrites those parts of its file, keeps the rest, and reloads the agent if it was loaded.
  • F7 opens the same form, empty, with a name, and creates the agent in ~/Library/LaunchAgents. It is loaded at once.
  • Enter goes inside: its definition, its program, its logs and the process it runs as. Enter on a file goes to it in the other pane, and nothing is run.
  • The keys that copy and move files say that they do nothing here (F5).

Those from macOS and apps

The last row, Show 3 more agents, counts the launch agents macOS and other applications have loaded or disabled for you. Their files are not read, so Starts says not read. Enter on it (Enter) lists them below a line, and the same row hides them again. They can only be enabled or disabled here: changing their files needs administrator access. Disabling one keeps it from starting at the next login and leaves it running until then, since stopping it may break what it belongs to.