X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FDaemonize%2FWithPidFile.pm;h=d47ed21449ae70e87bffcd89e9e949fa3f8b42ec;hb=5231273c6ddb272733286beb5e3d5faf94cfd437;hp=65df99367db13a7f16b7b59b508fc1bd33cfdcc2;hpb=5b9ebe08eff2f6410804c2f3c2fa361db0b446a2;p=gitmo%2FMooseX-Daemonize.git diff --git a/lib/MooseX/Daemonize/WithPidFile.pm b/lib/MooseX/Daemonize/WithPidFile.pm index 65df993..d47ed21 100644 --- a/lib/MooseX/Daemonize/WithPidFile.pm +++ b/lib/MooseX/Daemonize/WithPidFile.pm @@ -1,19 +1,19 @@ +use strict; +use warnings; package MooseX::Daemonize::WithPidFile; -use strict; # cause Perl::Critic errors are annoying + use MooseX::Getopt; # to load the Getopt metaclass use Moose::Role; use MooseX::Daemonize::Pid::File; -our $VERSION = 0.01; - with 'MooseX::Daemonize::Core'; requires 'init_pidfile'; has pidfile => ( # NOTE: - # this should always be accessible + # this should always be accessible # from the command line IMO # - SL metaclass => 'Getopt', @@ -28,7 +28,7 @@ has pidfile => ( after 'daemonize' => sub { my $self = shift; # NOTE: - # make sure that we do not have + # make sure that we do not have # any bad PID values stashed around # - SL $self->pidfile->clear_pid; @@ -65,8 +65,8 @@ MooseX::Daemonize::WithPidFile - A Role with the core daemonization and pidfile =head1 DESCRIPTION -This is a slightly extended basic daemonization Role, it provides -Pidfile management along with the core daemonization features +This is a slightly extended basic daemonization Role, it provides +Pidfile management along with the core daemonization features found in L. =head1 ATTRIBUTES @@ -76,7 +76,7 @@ found in L. =item I rw, isa => MooseX::Daemonize::Pid::File)> This attribute holds the L object used -to manage the Pidfile. It will initialize the object using the +to manage the Pidfile. It will initialize the object using the C method (which is required by this role). =back @@ -92,7 +92,7 @@ return a L object. =item B -This is a predicate method to tell you if your I attribute has +This is a predicate method to tell you if your I attribute has been initialized yet. =back @@ -103,7 +103,7 @@ been initialized yet. =item B -This adds an C method modifier to the C method (from +This adds an C method modifier to the C method (from L) and handles writing your Pidfile for you. =item B @@ -134,7 +134,7 @@ Stevan Little C<< >> =head1 LICENCE AND COPYRIGHT -Copyright (c) 2007, Chris Prather C<< >>. All rights +Copyright (c) 2007-2011, Chris Prather C<< >>. All rights reserved. Portions heavily borrowed from L which is copyright Earl Hood.