From: Chris Prather Date: Tue, 17 Jul 2007 02:46:56 +0000 (+0000) Subject: Add future ideas file X-Git-Tag: 0.02~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7ada91b857533205dd44d74f9686232ac7adf34f;p=gitmo%2FMooseX-Daemonize.git Add future ideas file r25262@alice-3: perigrin | 2007-07-11 14:48:15 -0500 updates for 0.0.2 r25669@alice-3: perigrin | 2007-07-16 21:45:56 -0500 add delete method --- diff --git a/Changes b/Changes index 3b4bf44..3cb135e 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,10 @@ 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. diff --git a/IDEAS b/IDEAS new file mode 100644 index 0000000..9e1eab8 --- /dev/null +++ b/IDEAS @@ -0,0 +1 @@ +* 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. diff --git a/Makefile.PL b/Makefile.PL index 883ee82..b0e09dd 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -11,6 +11,7 @@ requires 'Proc::Daemon' => 0; requires 'Carp' => 0; requires 'File::Flock' => 0; requires 'File::Slurp' => 0; +requires 'MooseX::Getopt' => 0; requires 'Moose' => 0.20; no_index 'directory' => 'examples'; diff --git a/lib/MooseX/Daemonize.pm b/lib/MooseX/Daemonize.pm index b3be19d..920b16e 100644 --- a/lib/MooseX/Daemonize.pm +++ b/lib/MooseX/Daemonize.pm @@ -135,7 +135,7 @@ sub stop { sub restart { my ($self) = @_; - $self->stop( noexit => 1 ); + $self->stop( no_exit => 1 ); $self->start(); } @@ -174,7 +174,7 @@ sub _kill { 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 @@ -353,6 +353,9 @@ L, L, L Chris Prather C<< >> +=head1 THANKS + +Mike Boyko, Matt S. Trout, Stevan Little, Brandon Black, and the #moose denzians =head1 LICENCE AND COPYRIGHT