File-Pid
view release on metacpan or search on metacpan
lib/File/Pid.pm view on Meta::CPAN
if ( my $num = $pidfile->running ) {
die "Already running: $num\n";
}
$pidfile->remove;
=cut
use vars qw[$VERSION];
$VERSION = sprintf "%d.%02d", split m/\./, (qw$Revision: 1.1 $)[1];
use File::Spec::Functions qw[tmpdir catfile];
use File::Basename qw[basename];
use base qw[Class::Accessor::Fast];
=head1 DESCRIPTION
This software manages a pid file for you. It will create a pid file,
query the process within to discover if it's still running, and remove
the pid file.
( run in 1.696 second using v1.01-cache-2.11-cpan-71847e10f99 )