An open API service indexing awesome lists of open source software.

https://github.com/dnmfarrell/rmlockfile


https://github.com/dnmfarrell/rmlockfile

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

=pod

=encoding utf8

=head1 NAME

rmlockfile - remove an orphaned lockfile when its process has finished

=head1 SYNOPSIS

rmlockfile [options]

Options
-------
--process,-p process name to check is running
--filepath,-f path of the lockfile to remove if process is not running
--help,-h display these options

Command line examples
---------------------
$ ./rmlockfile --process keepassx --filepath ~/Documents/vault.kdb.lock

$ ./rmlockfile -p keepassx -f ~/Documents/vault.kdb.lock

Crontab example
---------------
* * * * * /home/user1/rmlockfile -p keepassx -f /home/user1/Documents/vault.kdb.lock

=head1 DESCRIPTION

C is a lightweight program for tidying up orphaned lockfiles after
their process has finished. My primary use-case for this was C, which
will always leave behind a lockfile if interrupted or terminated.

=head1 REQUIREMENTS

Perl v5.8 or higher, GNU Bash (tested on v4.3.42, Fedora 22)

=head1 AUTHOR

David Farrell E 2015

=head1 LICENSE

FreeBSD, see LICENSE