Files
Mark D Horn 9f6592bea2 Base the lock file on the log file
Fixes: #364

Enable concurrent execution with different log files.
Now locks are based off of the log file name, and are process based.
Allows for checking if existing lock process is active.

Enables  generation of multiple images in parallel.

vendor: Add lockfile package

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-15 19:00:26 -07:00

1.2 KiB

lockfile

Handle locking via pid files.

Build Status Unix Build status Windows

install

Install Go 1, either from source or with a prepackaged binary. For Windows suport, Go 1.4 or newer is required.

Then run

go get github.com/nightlyone/lockfile

LICENSE

MIT

documentation

package documentation at godoc.org

install

go get github.com/nightlyone/lockfile

contributing

Contributions are welcome. Please open an issue or send me a pull request for a dedicated branch. Make sure the git commit hooks show it works.

git commit hooks

enable commit hooks via

    cd .git ; rm -rf hooks; ln -s ../git-hooks hooks ; cd ..