https://github.com/dnmfarrell/rmlockfile
https://github.com/dnmfarrell/rmlockfile
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/dnmfarrell/rmlockfile
- Owner: dnmfarrell
- License: other
- Created: 2015-10-22T12:39:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-22T13:38:52.000Z (over 10 years ago)
- Last Synced: 2025-01-16T16:49:35.992Z (over 1 year ago)
- Language: Perl
- Size: 121 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.pod
- License: LICENSE
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