projects
/
gitmo/MooseX-Daemonize.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
moving the Pid file stuff out into a role, and make a types module
[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::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__