NAME

CTK::FilePid - File::Pid patched interface

VERSION

Version 1.03

SYNOPSIS

  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;
  }

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.

See File::Pid for details

running

Patched method. See "running" in File::Pid

HISTORY

See Changes file

DEPENDENCIES

File::Pid

TO DO

See TODO file

BUGS

* none noted

SEE ALSO

File::Pid

AUTHOR

Serż Minus (Sergey Lepenkov) http://www.serzik.com <abalama@cpan.org>

COPYRIGHT

Copyright (C) 1998-2019 D&D Corporation. All Rights Reserved

LICENSE

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/