ok,.. more tests and stuff
[gitmo/MooseX-Daemonize.git] / lib / MooseX / Daemonize / WithPidFile.pm
1 package MooseX::Daemonize::WithPidFile;
2 use strict;
3 use Moose::Role;
4
5 use MooseX::Daemonize::Pid::File;
6
7 our $VERSION = 0.01;
8
9 requires 'init_pidfile';
10
11 has pidfile => (
12     isa       => 'MooseX::Daemonize::Pid::File',
13     is        => 'rw',
14     lazy      => 1,
15     required  => 1,
16     coerce    => 1,
17     predicate => 'has_pidfile',
18     builder   => 'init_pidfile',
19 );
20
21 1;
22
23 __END__
24
25 =pod
26
27 =cut