Lazy-Lockfile reviews

RSS | Module Info

Lazy-Lockfile (1.20) *****

Bottom line the best lock file system I could find on the CPAN. I did a bunch of research. I need an easy one that just works. So, call me Lazy.

- Supports custom lock file name.

- Supports clean start after kill.

- Supports clean up on out of scope.

- Supports updates via RPM without walking on itself (unlike Sys::RunAlone which locks <DATA>)

Documentation Issues - new constructor only supports hash reference style arguments ->new({}) it took trial and error to find the bug in my code.

Easy enough

use Lazy::Lockfile;
my $lockfile = Lazy::Lockfile->new("/tmp/$process-$realm.lock") || exit;