Commit | Line | Data |
---|---|---|
d9e417f4 | 1 | package MooseX::Daemonize::WithPidFile; |
2 | use strict; | |
3 | use Moose::Role; | |
4 | ||
d8985b7d | 5 | use MooseX::Daemonize::Pid::File; |
d9e417f4 | 6 | |
7 | our $VERSION = 0.01; | |
8 | ||
9 | requires 'init_pidfile'; | |
10 | ||
11 | has pidfile => ( | |
d8985b7d | 12 | isa => 'MooseX::Daemonize::Pid::File', |
d9e417f4 | 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 | ||
8ac4733f | 23 | __END__ |
24 | ||
25 | =pod | |
26 | ||
27 | =cut |