Linux::Pidfile - Pidfile handling to help control processes.
use Linux::Pidfile; my $Pid = Linux::Pidfile::->new(); $Pid->create() or die('Already running!'); # ... $Pid->remove();
Pidfile handling to help processes avoid running multiple times.
Initialize the pidfile location.
Placeholder.
Try to create a new pidfile, if the proc is already running exit with false.
Return true if a process with the given pid is already running.
Return true if the pidfile is configured, exists and a process with this pid is running.
Return true if this script is running.
Remove the pidfile. Should be called when the invoking process is about to exit.
Linux::Pidfile - Pidfile handling to help processes avoid running multiple times.
Dominik Schulz <dominik.schulz@gauner.org>
This software is copyright (c) 2012 by Dominik Schulz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Linux::Pidfile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Linux::Pidfile
CPAN shell
perl -MCPAN -e shell install Linux::Pidfile
For more information on module installation, please visit the detailed CPAN module installation guide.