CTK::FilePid - File::Pid patched interface
Version 1.03
use CTK::FilePid; my $pidfile = new CTK::FilePid ({ file => '/some/file.pid', }); if ( my $num = $pidfile->running ) { die "Already running: $num\n"; } else { $pidfile->write; # ... # blah-blah-blah # ... $pidfile->remove; }
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.
See File::Pid for details
Patched method. See "running" in File::Pid
See Changes file
Changes
File::Pid
See TODO file
TODO
* none noted
Serż Minus (Sergey Lepenkov) http://www.serzik.com <abalama@cpan.org>
Copyright (C) 1998-2019 D&D Corporation. All Rights Reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See LICENSE file and https://dev.perl.org/licenses/
LICENSE
To install CTK, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CTK
CPAN shell
perl -MCPAN -e shell install CTK
For more information on module installation, please visit the detailed CPAN module installation guide.