S6-INSTANCE-LIST(8)

πŸ“¦ version 2.15.1.0, in nixpkgs unstable

πŸ’… s6-instance-list β€” the roster of your instances, bestie

okay so real talk, this is s6-instance-list from section 8 of the manual (system manager's manual energy ✨), and it's literally the "who's here" page for your s6-instanced-service(7). Like, the guest list. The roster. The group chat member list. 🫢


🌸 SYNOPSIS 🌸

s6-instance-list servicedir

✨ DESCRIPTION ✨

So s6-instance-list is expecting a running, supervised s6-instanced-service(7) sitting in servicedir β€” and also an existing instance of this service named name. (yes queen, that's what it says, we're keeping it πŸ’…)

What it does is print to stdout, one per line, the names of all the existing instances of servicedir β€” meaning the ones that have been created and not deleted. Doesn't matter if they're up or down, bestie; if they've been created and not deleted, they get printed. periodt. πŸ”₯

It exits 0. iconic behavior, no notes.

The list is unsorted β€” the instance names come out in an unspecified order, so don't come for me if your fave isn't first. πŸ™ˆ

Here's the fun part: you can use s6-instance-list to script up commands that handle whole sets of instances. Like, say you wanna grab the status of every instance of a given service β€” you could write:

for i in `s6-instance-list service` ; do printf "%s: " $i ; s6-instance-status service $i ; done

it's giving automation. it's giving main character scripting. iykyk. 🧚


πŸ’– EXIT STATUS πŸ’–

  • 0 β€” Success. slay.
  • 100 β€” Wrong usage. πŸ’€ (you called it wrong, babe)
  • 111 β€” System call failed. 😭 (not your fault, the system's being weird)

πŸ¦‹ SEE ALSO πŸ¦‹

the whole squad, all linked up πŸ’œ


πŸ‘‘ AUTHORS πŸ‘‘

  • Laurent Bercot
  • Alexis <flexibeast@gmail.com> (man page port)

okay that's the whole page, mwah πŸ’‹ this lil beauty dropped in the Debian edition on January 15, 2023 β€” yeah it's been iconic for a minute. go forth and list those instances, bestie πŸŽ€β­

πŸ“¦ where this page comes from