S6-INSTANCE-LIST(8)
π 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 π¦
s6-instanced-service(7)s6-instance-control(8)s6-instance-create(8)s6-instance-delete(8)s6-instance-maker(8)s6-instance-status(8)
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
- nixpkgs unstable: s6 2.15.1.0
- nixpkgs unstable: s6-man-pages 2.14.0.1.4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms