Simple locking client for use with locksmith-server
This aims to imitate the functionality of using flock and local files but on a network with multiple clients and no access to shared FS.
- Python (2.7 tested)
- requests
$ pip install git+git://github.com/fim/locksmith-agent.git
- Register with your lock server
$ locksmith register http://lock-server
- Acquire locks
$ locksmith lock foo
- Release locks
$ locksmith unlock foo
- Execute something when lock is acquired
$ locksmith execute -l foo "ls -la"