mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
573 B
Plaintext
26 lines
573 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# stormlock
|
|
|
|
> Centralized locking system.
|
|
> More information: <https://github.com/tmccombs/stormlock#usage>.
|
|
|
|
- Acquire a lease for resource:
|
|
|
|
`stormlock acquire {{resource}}`
|
|
|
|
- Release the given lease for the given resource:
|
|
|
|
`stormlock release {{resource}} {{lease_id}}`
|
|
|
|
- Show information on the current lease for a resource, if any:
|
|
|
|
`stormlock current {{resource}}`
|
|
|
|
- Test if a lease for given resource is currently active:
|
|
|
|
`stormlock is-held {{resource}} {{lease_id}}`
|