Permalink
Browse files

Added log messages for children cleanup

  • Loading branch information...
1 parent 109ed98 commit 0843b0dbda23ad8a8d863250da1934a6b6ae9b14 @miyagawa committed Dec 2, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Starman/Server.pm
View
@@ -109,6 +109,7 @@ sub server_close {
my($self, $quit) = @_;
if ($quit) {
+ $self->log(2, $self->log_time . " Received QUIT. Running a graceful shutdown\n");
$self->{server}->{$_} = 0 for qw( min_servers max_servers );
$self->hup_children;
while (1) {
@@ -117,6 +118,7 @@ sub server_close {
last if !keys %{$self->{server}{children}};
sleep 1;
}
+ $self->log(2, $self->log_time . " Worker processes cleaned up\n");
}
$self->SUPER::server_close();

0 comments on commit 0843b0d

Please sign in to comment.