S6-INSTANCE-STATUS(8)

πŸ“¦ version 2.15.1.0, in nixpkgs unstable

πŸ’… S6-INSTANCE-STATUS(8) β€” like, the whole manual, but make it make sense

okay so bestie, quick vibe check: this is a page from the System Manager's Manual, and it's all about s6-instance-status β€” the little tool that tells you what's up with one specific running instance of an s6-instanced-service(7). It'll give you either a short human-readable summary or output you can parse programmatically, your call. ✨


🌸 NAME 🌸

s6-instance-status β€” give the status of a running instance of an s6-instanced-service(7), as a short human-readable summary or programmatically parsable output

πŸŽ€ SYNOPSIS πŸŽ€

s6-instance-status
                   [-uwNrpest | -o up,wantedup,normallyup,ready,paused,pid,exitcode,signal,signum,updownsince,readysince,updownfor,readyfor]
                   [-n] servicedir name

like yes, that second line is long, no I will not be apologising for it πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea πŸ“: s6-instance-status expects a running, supervised s6-instanced-service(7) sitting in servicedir, and it also expects that an instance of this service named name already exists. Both of those things? Non-negotiable. It's giving "bring your own prerequisites."

Once it's got all that, it prints information to stdout about the monitored instance of servicedir named name. That's it. That's the whole job. πŸ‘‘

And then β€” and this is the best part β€” it exits 0. Slay. βœ…

πŸ”₯ OPTIONS πŸ”₯

Okay so the options are exactly the same as the ones understood by s6-svstat(8). Not "similar", not "inspired by" β€” literally the same ones. Iconic behaviour, honestly.

In fact (and this is the plot twist 🫒), s6-instance-status is nothing more than a call to s6-svstat(8) on the service directory representing the name instance. It's syntactic sugar, bestie. Pure, unadulterated sugar. It exists so you, the user, do not have to depend on:

  • the internal representation of instances, or
  • the location of instances' service directories.

You're welcome. 🫢

⭐ EXIT STATUS ⭐

  • 0 β€” Success. We love to see it. πŸ’–
  • 100 β€” Wrong usage. You did something goofy with the arguments, no judgement. πŸ™ˆ
  • 111 β€” System call failed. Not your fault, the system's just being like that. 😭

🌈 SEE ALSO 🌈

the whole squad, fr fr πŸ’œ

πŸ‘‘ AUTHORS πŸ‘‘

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

okay that's the whole thing, no cap 🧚 this edition came from Debian, dated January 11, 2023 β€” and it's S6-INSTANCE-STATUS(8) all the way down at the bottom too. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from