1 package MooseX::Daemonize::WithPidFile;
5 use MooseX::Daemonize::Pid::File;
9 with 'MooseX::Daemonize::Core';
11 requires 'init_pidfile';
14 isa => 'MooseX::Daemonize::Pid::File',
19 predicate => 'has_pidfile',
20 builder => 'init_pidfile',
23 after 'daemonize' => sub {
25 # make sure that we do not have
26 # any bad PID values stashed around
28 (shift)->pidfile->clear_pid