Use Visor

The menu bar

Visor lives in the menu bar. Its icon shows how your processes are doing at a glance, and a click opens a small window with every process and the controls you use most.

What the icon means

The icon is a ring around a pulse line. A badge at its top right means something needs a look. It follows the system’s light or dark menu bar.

  • NormalEvery process is running or stopped on purpose.
  • Hollow badgeSomething is starting, stopping or retrying (STARTING, STOPPING or BACKOFF).
  • Filled badgeA process can’t start (FATAL), one exited with a code its config doesn’t expect, or supervisord isn’t answering.
  • Ring aloneVisor hasn’t heard from supervisord yet.

An exit only counts as unexpected when its code isn’t in the program’s exitcodes= (by default, anything but 0). With Show the unread count in the menu bar on in Settings, the number of unread notifications sits beside the icon.

The popover

Click the icon to open it. Press Esc or click elsewhere to close it.

The menu-bar popover: a header saying This Mac and 1 server, This Mac’s section unfolded with a Needs attention group, then each config file with its bell and its processes, each with Start, Stop or Restart buttonsThe menu-bar popover: a header saying This Mac and 1 server, This Mac’s section unfolded with a Needs attention group, then each config file with its bell and its processes, each with Start, Stop or Restart buttons
  • The header shows the server’s state, a 2 failing badge when something fails, and a line such as 8 running · 2 stopped · up 1h 12m. The bell opens your notifications and shows how many are unread.
  • Needs attention comes first and lists every failing process.
  • Then each config file, with its processes and a bell. A filled bell means you’re watching the file and get notified when its processes fail; a crossed-out bell means Visor stays quiet about it. Click the bell to switch.
  • Each process has a state dot, its name over its state and how long (Running · 3h 12m), and only the buttons that apply: Start for a stopped process, Stop and Restart for a running one.
  • Copies of one program (numprocs above 1) share a row, such as mailer-worker ×2. Its buttons act on every copy; click the name to unfold the copies and control them one by one.
  • At the bottom: Restart all, Apply changes (applies config files changed on disk; asks first and lists what will change), and Open Visor… for the main window.

Servers in the popover

With servers open, the popover has a section for each one, and the header names them all, such as This Mac and 2 servers. Every section starts folded; click one to unfold it. A server’s section has its state, its processes, Restart all on that server and Open tab.

The icon shows the worst state across all tabs, so a failing process on a server badges it too.

When supervisord isn’t answering

The list gives way to a card that says what’s wrong, such as supervisord isn’t running, with Open Doctor and Try again. Show details has the exact error. Restart all and Apply changes stay off until Visor is connected again.

The right-click menu

Right-click the icon for:

  • Open Visor
  • Preferences… opens Settings.
  • Notifications opens the main window with the notification list open.
  • Launch at login, the same switch as in Settings.
  • Quit. Quitting Visor doesn’t stop your processes: supervisord keeps running them.

On Linux

Visor sits in the tray. GNOME needs the AppIndicator extension to show it: see Install on Linux.

  • The icon is in colour and looks the same on a dark or a light panel. A warning or an error is an orange or red dot at its top right. The ring stays grey until Visor hears from supervisord.
  • The count is drawn on the icon, in a badge of the same colour (blue when all is well): 1 to 9, then 9+. Show the unread count on the tray icon in Settings turns it off.
  • On GNOME, a click opens the menu, which starts with Show status…. That opens the popover. On KDE, a click opens the popover itself.
  • The popover stays open when you click elsewhere. Close it with Esc, its close button, or Show status… again. On X11 it opens beside the pointer; on Wayland the desktop decides where it goes.

Edit this page on GitHub

The text is under CC BY 4.0: reuse it with credit to Touhidur Rahman and a link to this page. The code examples are free to copy.