RLOCK(1)
π RLOCK(1) π
okay so this is the General Commands Manual page for rlock, section 1, and bestie you're gonna love it π
β¨ NAME β¨
rlock β run program with a lockfile π
π¦ SYNOPSIS π¦
rlock [options] lockfile program [args]
rlock [options] lockfile -- program options [args]
πΈ DESCRIPTION πΈ
so rlock creates NFS safe lockfiles. that's the whole vibe. β¨
it can optionally run a program while holding the lock, and it makes sure the lockfile gets removed when the program exits β like it's not gonna leave a mess, it's not that kind of friend π«Ά
if a program is specified to be run, rlock will spawn a background thread to keep the lockfile 'fresh' by touching it at a regular interval. the way that works?? it maintains a lease on the lockfile, so other processes trying to obtain the lock can figure out that it's already in use. no cap π₯
see the --refresh option for how to control the touch interval π
and any other process trying to obtain a lock will automatically remove a stale lockfile β and a stale lockfile is one that's older than a certain age. that age can be controlled via the --max_age option β
π§ ENVIRONMENT π§
LOCKFILE_DEBUG=1β makes the internal actions of the library show up onSTDERR. literally the behind-the-scenes commentary track π
π DIAGNOSTICS π
rlock attempts to exit with the status of program, except where it cannot due to exceptional conditions. so like, it tries its best, okay π
in addition, this message:
'RLOCK SUBCOMMAND FAILURE'
will be printed on STDERR if program exits with non-zero status. so if you see that, bestie, something went sideways π
π AUTHOR π
lockfile was written by Ara T. Howard <ara.t.howard@noaa.gov>.
This manual page was converted by Decklin Foster <decklin@red-bean.com> for the Debian project (but may be used by others). iconic behavior honestly π
mwah that's the whole page! this one's from 2008-10-11, it's RLOCK(1) from the General Commands Manual, and yeah β that's genuinely the entire source/version/date situation. slay πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- debian bookworm: ruby-lockfile 2.1.3-1.1 Β· Ruby License OR GPL-2.0-or-later
- debian trixie: ruby-lockfile 2.1.3-1.1 Β· Ruby License OR GPL-2.0-or-later
- ubuntu jammy: ruby-lockfile 2.1.3-1.1 Β· Ruby License OR GPL-2.0-or-later
- ubuntu noble: ruby-lockfile 2.1.3-1.1 Β· Ruby License OR GPL-2.0-or-later
- ubuntu resolute: ruby-lockfile 2.1.3-2 Β· Ruby OR GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms