Commit | Line | Data |
---|---|---|
d9e417f4 | 1 | package MooseX::Daemonize::WithPidFile; |
2 | use strict; | |
3 | use Moose::Role; | |
4 | ||
5 | use MooseX::Daemonize::Types; | |
6 | use MooseX::Daemonize::PidFile; | |
7 | ||
8 | our $VERSION = 0.01; | |
9 | ||
10 | requires 'init_pidfile'; | |
11 | ||
12 | has pidfile => ( | |
13 | isa => 'MooseX::Daemonize::PidFile', | |
14 | is => 'rw', | |
15 | lazy => 1, | |
16 | required => 1, | |
17 | coerce => 1, | |
18 | predicate => 'has_pidfile', | |
19 | builder => 'init_pidfile', | |
20 | ); | |
21 | ||
22 | 1; | |
23 | ||
24 | __END__ |