Revision history for MooseX-Daemonize
+0.02 ???
+ - Add the GetOpt prereq
+ - Adjust the kill timings
+ - Added THANKS to pod
+
0.0.1 Wed May 16 11:46:56 2007
Initial release.
--- /dev/null
+* 2:36 : mike : A slightly different would be to have another object, which is a daemon, which is the keeper of the PIDs. It can bind to a port and then your other objects would actually cause things to happen without needing a PID file.
requires 'Carp' => 0;
requires 'File::Flock' => 0;
requires 'File::Slurp' => 0;
+requires 'MooseX::Getopt' => 0;
requires 'Moose' => 0.20;
no_index 'directory' => 'examples';
sub restart {
my ($self) = @_;
- $self->stop( noexit => 1 );
+ $self->stop( no_exit => 1 );
$self->start();
}
unless ( CORE::kill 0 => $pid or $!{EPERM} ) { # IF it is still running
CORE::kill( 9, $pid ); # finally try SIGKILL
- sleep(2) if CORE::kill( 0, $pid );
+ sleep(3) if CORE::kill( 0, $pid );
}
unless ( CORE::kill 0 => $pid or $!{EPERM} ) { # IF it is still running
Chris Prather C<< <perigrin@cpan.org> >>
+=head1 THANKS
+
+Mike Boyko, Matt S. Trout, Stevan Little, Brandon Black, and the #moose denzians
=head1 LICENCE AND COPYRIGHT