S6-SVSCANCTL(8)
π s6-svscanctl β sending lil love notes to your s6-svscan(8)
okay so real quick, this is the s6-svscanctl page from the System Manager's Manual (section 8, sysadmin girlies rise) and it's genuinely so useful once it clicks, i promise π«Ά
β¨ SYNOPSIS β¨
s6-svscanctl [-zabhitqnN] scandir
πΈ DESCRIPTION πΈ
So s6-svscanctl is basically the group chat DM-er for your supervision tree π β it sends the given series of commands to the s6-svscan(8) process that's monitoring the scandir directory, and then it dips and exits 0. Slay.
But bestie, listen to the exit codes, they matter:
- exits
111if it cannot send a command π - exits
100if nos6-svscan(8)process is running on scandir π
no cap, that's it. that's the whole vibe.
π OPTIONS π
-aβ Alarm.s6-svscan(8)will immediately perform a scan of scandir to check for services. like a little "hey u up" ping π-zβ Destroy zombies. Immediately triggerss6-svscan(8)'s reaper mechanism. bye bye zombie processes, not me sending them to the shadow realm π-bβ Abort.s6-svscan(8)will exec into its finishing procedure. Important detail bestie: it will not kill any of the maintaineds6-supervise(8)processes, unless a-tor-qoption is also present before the-boption in thes6-svscanctlinvocation. so order literally matters here, iykyk π₯-hβ Reload configuration.s6-svscan(8)will perform a scan, and destroy inactive services. Equivalent to-an. glow-up for your config β¨-iβ Equivalent to-tbelow. that's it, that's the whole thing π-tβ Terminate.s6-svscan(8)will send aSIGTERMto all thes6-supervise(8)processes supervising a service and aSIGHUPto all thes6-supervise(8)processes supervising a logger, then exec into its finish procedure. This means that services will be brought down but loggers will exit naturally on EOF, ands6-svscan(8)will wait for them to exit before exec'ing into.s6-svscan/finishor exiting itself: it's a clean shutdown with no loss of logs. π€© literally the respectful breakup option, everyone gets closure and nobody loses their diary entries.-qβ Quit.s6-svscan(8)will send all itss6-supervise(8)processes aSIGTERM, then exec into its finish procedure. This is different from-tin that services and loggers will be forcibly killed, so the quit procedure may be faster but in-flight logs may be lost. π fast but messy, main character energy with consequences fr fr.-nβ Nuke.s6-svscan(8)will kill all thes6-supervise(8)processes it has launched but that did not match a service directory last time scandir was scanned β i.e. it prunes the supervision tree so that it matches exactly what was in scandir at the time of the last scan. ASIGTERMis sent to thes6-supervise(8)processes supervising services and aSIGHUPis sent to thes6-supervise(8)processes supervising loggers. declutter queen π-Nβ Really nuke. Does the same thing as-n, except thatSIGTERMis sent to all the relevants6-supervise(8)processes, even if they are supervising loggers. This is not recommended in a situation where you do not need to tear down the supervision tree. π¨ yeah this one's the nuclear option, please don't just vibe-check it for fun.
π§ IMPLEMENTATION NOTES π§
Under the hood, s6-svscanctl writes control commands into the scandir/.s6-svscan/control FIFO. An s6-svscan(8) process running on scandir will be listening to this FIFO, and will read and interpret those commands. so it's literally just leaving notes in a mailbox that s6-svscan checks constantly π¬ iconic behavior honestly.
π₯ SEE ALSO π₯
s6-notifyoncheck(8), s6-permafailon(8), s6-supervise(8), s6-svc(8), s6-svdt(8), s6-svdt-clear(8), s6-svlisten(8), s6-svlisten1(8), s6-svok(8), s6-svscan(8), s6-svstat(8), s6-svwait(8)
This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6/s6-svscanctl.html
π AUTHORS π
- Laurent Bercot
- Alexis
<flexibeast@gmail.com>(man page port)
okay and finally, the lil sign-off: this one comes from Debian, dated September 29, 2021 β so yeah, it's giving vintage but it still ate π go forth and scan responsibly 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