S6-FDHOLDER-GETDUMP(8)
π S6-FDHOLDER-GETDUMP(8) π
okay so bestie, listen up πβ¨ this is the manual page for s6-fdholder-getdump, and it's lowkey iconic. it lives in the System Manager's Manual section, and it's about to make your fd-holding life so much easier π«Ά
β¨ NAME β¨
s6-fdholder-getdump β connect to an s6-fdholderd(8) daemon that's listening on a Unix domain socket, and retrieve its entire state: all the file descriptors with their identifiers and expiration dates π no cap, the whole thing.
πΈ SYNOPSIS πΈ
s6-fdholder-getdump [-t timeout] path prog...
π¦ DESCRIPTION π¦
so s6-fdholder-getdump connects to an s6-fdholderd(8) server process that's listening on path. simple as that π
it then retrieves a copy of the whole set of file descriptors stored in this daemon β including their identifiers and expiration dates. like, every single one. main character energy fr fr π
after that, it executes into prog... with the additional open descriptors and the additional environment variables all set up and ready to go. slay β¨
β οΈ okay important warning bestie: getting the whole state of ans6-fdholderd(8)daemon requires specific privileges. make sure you properly configure thes6-fdholderd(8)access rights so your client can actually perform that operation. don't come crying to me if it doesn't work because you skipped this step π
π OPTIONS π
-t timeoutβ if the operation can't be processed withintimeoutmilliseconds, it fails with an error message. ngl, communications with the server should be near-instant, so this option is only here to protect you from your own programming errors (like connecting to the wrong socket, for instance π). it's giving safety net energy.
π ENVIRONMENT π
prog... is executed with the following environment variables set, and they're all super important so pay attention bestie:
S6_FD#contains the numbernof file descriptors retrieved from the server. (yes, the variable name literally has a#in it, iykyk)
then, for every i between 0 and nβ1 inclusive:
S6_FD_iβ contains the number of theith open file descriptor.S6_FDID_iβ contains the identifier of theith open file descriptor.S6_FDLIMIT_iβ contains the expiration date of theith open file descriptor, if applicable. that date is stored in external TAI64N format (see the link down in SEE ALSO π). if the file descriptor isn't supposed to expire, this environment variable is simply not defined. no expiration, no variable, periodt π
π EXIT STATUS π
on success, the program doesn't exit β instead, it execs into prog.... iconic behavior, honestly β¨
1β the server denied the operation. the meanings of the error messages are explained ins6-fdholder-error-codes(7). go read that if you're confused π«Ά100β wrong usage. you did something weird with the arguments, bestie π¬111β system call failed. this includes attempting to connect to a nonexistent socket, or one where nos6-fdholderd(8)daemon is listening. rip π
π₯ EXAMPLES π₯
s6-fdholder-getdump /service/fdholderd/s s6-fdholder-setdump
/service/fdholderd-2/s
okay so this will get the state of the s6-fdholderd(8) daemon listening on the /service/fdholderd/s socket, and transmit it to the other s6-fdholderd(8) daemon listening on the /service/fdholderd-2/s socket. cute, right? π
π‘ note that in this precise case, the s6-fdholder-transferdump(8) program does the same thing more efficiently. so like, use that one instead if you can. just saying π€·ββοΈ
π SEE ALSO π
s6-fdholder-daemon(8), s6-fdholder-delete(8), s6-fdholder-list(8), s6-fdholder-retrieve(8), s6-fdholder-setdump(8), s6-fdholder-store(8), s6-fdholder-transferdump(8), s6-fdholderd(8)
also, the TAI64N format reference: https://cr.yp.to/libtai/tai64.html#tai64n
and just so you know, this man page is ported from the authoritative documentation at: https://skarnet.org/software/s6/s6-fdholder-getdump.html π
π AUTHORS π
Laurent Bercot Alexis <flexibeast@gmail.com> (man page port)
okay that's the whole thing bestie, you're welcome π this page came from Debian, dated September 29, 2021, and it's the S6-FDHOLDER-GETDUMP(8) manual page β now go forth and get those dumps! π¦β¨π
π¦ 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