S6-FGHACK(8)
okay so bestie, welcome to S6-FGHACK(8) β the s6-fghack page from section 8 of the System Manager's Manual β and it is literally an anti-backgrounding tool. No cap. The vibes are βa hackβ, but sometimes you gotta do what you gotta do π
β¨
πΈ NAME πΈ
<hotpink>s6-fghack</hotpink> β an anti-backgrounding tool π«Ά
β¨ SYNOPSIS β¨
Bestie, the whole mood is:
s6-fghack prog...
π DESCRIPTION π
Okay so hereβs the tea β: s6-fghack opens a lot of file descriptors β and yes, all of them are writing to a single pipe. Itβs giving descriptor party, honestly π.
Then it spawns prog... as a child. Cute, right? π§
If something gets written on one of those descriptors, itβs a bug in prog. Periodt. s6-fghack then complains and exits 102. Not a drill, bestie π.
Unless prog... goes out of its way to close descriptors it does not know about, s6-fghack is able to detect when prog... exits. It exits with an approximation (cf. execline(1)) of the same exit code. Thatβs the whole trick β¨.
β οΈ Real talk: s6-fghack is what it says: a hack. Ideally, you should never have to use it. It is only useful when you want to supervise a daemon that does not provide a βstay in the foregroundβ option; and even then, the right thing is to report this as a bug to the daemon author and have it fixed. Like, please do that instead if you can ππ
π¦ SEE ALSO π¦
s6-applyuidgid(8)s6-envdir(8)s6-envuidgid(8)s6-setsid(8)s6-setuidgid(8)s6-softlimit(8)s6-tai64n(8)s6-tai64nlocal(8)
This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6/s6-fghack.html π
π AUTHORS π
- Laurent Bercot
Alexis <flexibeast@gmail.com>(man page port)
okay bye bestie π«Ά β this little page is stamped Debian, November 7, 2023, and S6-FGHACK(8), so thatβs the footer vibe β¨π
π¦ 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