S6LOCKD(8)
π S6LOCKD(8) π
okay so this is the System Manager's Manual page for S6LOCKD(8), and bestie, it's giving lock-file management with main character energy. π
β¨ NAME β¨
s6lockd β the s6-s6lock(7) daemon that manages a set of lock files in a given directory, plus the associated timeouts. π«Ά
π DESCRIPTION π
s6lockd does not fork, does not background itself automatically, and does not use syslog. π« It is not meant to be run directly by the user: it will be spawned by the s6-s6lock(7) client library. π
There are two ways to use s6lockd:
- Use the
s6lock_startf()library call. Ans6lockdchild will then be spawned from your calling process, and automatically reaped when you calls6lock_end(). π§ This requires care with applications that trapSIGCHLD. It also requires care with lock file permissions: ans6lockdinstance might not be able to open a lock file created by a former instance run by another client with different permissions. π - Use the
s6lock_start()library call, together with ans6lockds6-local-service(7). For once, this is the recommended setup:s6lockdcreates empty lock files, and having alls6lockdinstances run under the same user simplifies permissions management considerably. β¨
When run as a service, s6lockd has no βstandaloneβ mode: it is designed to work with a Unix domain super-server, like s6-ipcserver(8). s6lockd follows the UCSPI[1] interface; it can be directly executed from the super-server. π₯
Unix does not natively provide a way to stop blocking on a lock acquisition after a timeout. To emulate such behaviour, s6lockd actually spawns an s6lockd-helper(8) child per requested lock. β°
π SEE ALSO π
This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6/libs6/s6lockd.html
π AUTHORS π
- Laurent Bercot
Alexis <flexibeast@gmail.com> (man page port)
cute footer sign-off, bestie: source/version tea is Debian, date is September 29, 2021, and the page is S6LOCKD(8). bye and slay those lock files responsibly πβ¨
π¦ 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