go-setlock - Go port of setlock
setlock is a command line tool which is in daemontools. That tool is known as powerful and useful.
Then I implemented setlock command by golang, called go-setlock.
go-setlock has functions which are equivalent to the original setlock. And go-setlock has following pros;
- You can use it without installing daemontools
- go-setlock is hosted on GitHub Releases, so you can use it by only downloading from there (https://github.com/moznion/go-setlock/releases)
- Or if you have golang environment, you can get go-setlock binary by
go get github.com/moznion/go-setlock/cmd/setlock
- Supporting Windows!!!
The former is useful for environments which cannot install daemontools, minimalists and etc.
The latter is pretty powerful. The original setlock is not available on Windows however go-setlock can use on there.
Usage is matched to the original setlock. Please refer README.md and manual of the original setlock.
Enjoy!