RUNLOCK(1)
π RUNLOCK(1) β General Commands Manual π
okay bestie, welcome to the group chat, we're talking about runlock from the General Commands Manual era and it is so underrated. buckle up π
β¨ NAME β¨
runlock β stop a process from running twice at the same time, no cap π
πΈ SYNOPSYS πΈ
runlock [ -h ]
runlock [ -d ] [ -f pathname ] [ -t timeout ] command [ args ]
yes the section is spelled SYNOPSYS and we are respectfully keeping it exactly as the universe delivered it π«Ά
π¦ DESCRIPTION π¦
so basically runlock tries to hold an exclusive lock while it executes a command. main character energy, but make it a mutex β¨
if you run runlock again with the same lock while that lock is still held, the new instance of runlock will justβ¦ terminate with a failure exit code. like, not today, bestie π
otherwise? the exit code of the subprocess is returned. that's it. that's the whole vibe. π
π USAGE π
-dβ debug mode, babe. sends log messages to standard error as well as to the system log. double the receipts, double the fun π-f pathnameβ specifies the pathname of the file to use as a lock file. the default is to create a lock file in/tmp/cronutils-$USERwith the name of the command, and suffix.pid. so like, very specific, very demure π-t timeoutβ specifies the duration, in seconds, forrunlockto wait before giving up on trying to acquire the lock. the default is5seconds. five seconds of patience and then we move on, periodt β³-hβ prints some basic help. little helper icon behavior π
π BUGS π
sendingSIGALRMtorunlockbefore the timer has expired will cause the subprocess to be killed. not a drill, not a vibe, just a genuine hazard β be careful out there bestie π
π SEE ALSO π
squad goals, fr fr π«Ά
π AUTHOR π
runlock was written by Jamie Wilkinson <jaq@google.com>. iconic of them, honestly π
β COPYRIGHT β
this program is copyright (C) 2010 Google, Inc.
it is licensed under the Apache License, Version 2.0 πβ¨
and that's the whole page, bestie!! πΈ from Google, Inc., dated October 18, 2010, filed under RUNLOCK(1) β go lock something (once), slay, and remember: two runlocks can't share a lock, but they can share the love ππ¦π
π¦ where this page comes from
- debian bookworm: cronutils 1.9-3+b1 Β· Apache-2.0
- debian trixie: cronutils 1.10-2 Β· Apache-2.0
- nixpkgs unstable: cronutils 1.10
- ubuntu jammy: cronutils 1.9-3 Β· Apache-2.0
- ubuntu noble: cronutils 1.10-1 Β· Apache-2.0
- ubuntu questing: cronutils 1.10-2
- ubuntu resolute: cronutils 1.10-2build1 Β· Apache-2.0
- ubuntu stonking: cronutils 1.10-2build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms