use strict; # cause Perl::Critic errors are annoying
use MooseX::Getopt; # to load the Getopt metaclass
use Moose::Role;
-our $VERSION = '0.09';
+our $VERSION = '0.16';
use MooseX::Daemonize::Pid::File;
has pidfile => (
# NOTE:
- # this should always be accessible
+ # this should always be accessible
# from the command line IMO
# - SL
metaclass => 'Getopt',
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;
=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<MooseX::Daemonize::Core>.
=head1 ATTRIBUTES
=item I<pidfile (is => rw, isa => MooseX::Daemonize::Pid::File)>
This attribute holds the L<MooseX::Daemonize::Pid::File> 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<init_pidfile> method (which is required by this role).
=back
=item B<has_pidfile>
-This is a predicate method to tell you if your I<pidfile> attribute has
+This is a predicate method to tell you if your I<pidfile> attribute has
been initialized yet.
=back
=item B<daemonize>
-This adds an C<after> method modifier to the C<daemonize> method (from
+This adds an C<after> method modifier to the C<daemonize> method (from
L<MooseX::Daemonize::Core>) and handles writing your Pidfile for you.
=item B<meta>
=head1 LICENCE AND COPYRIGHT
-Copyright (c) 2007-2008, Chris Prather C<< <perigrin@cpan.org> >>. All rights
+Copyright (c) 2007-2011, Chris Prather C<< <perigrin@cpan.org> >>. All rights
reserved.
Portions heavily borrowed from L<Proc::Daemon> which is copyright Earl Hood.