1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/stormlock.md

21 lines
474 B
Markdown
Raw Normal View History

2021-04-15 19:47:12 +02:00
# Stormlock
> Centralized locking system.
> More information: <https://github.com/tmccombs/stormlock>.
- Acquire a lease for resource:
2022-08-20 02:38:55 +02:00
`stormlock acquire {{resource}}`
2021-04-15 19:47:12 +02:00
- 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}}`