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.
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 <email@example.com>
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.