Apache2-ScoreBoardFile

 view release on metacpan or  search on metacpan

ppport.h  view on Meta::CPAN

  if ($opt{hints} && exists $hints{$func} && !$given_hints{$func}++) {
    my $hint = $hints{$func};
    $hint =~ s/^/   /mg;
    print "   --- hint for $func ---\n", $hint;
  }
  $rv;
}

sub usage
{
  my($usage) = do { local(@ARGV,$/)=($0); <> } =~ /^=head\d$HS+SYNOPSIS\s*^(.*?)\s*^=/ms;
  my %M = ( 'I' => '*' );
  $usage =~ s/^\s*perl\s+\S+/$^X $0/;
  $usage =~ s/([A-Z])<([^>]+)>/$M{$1}$2$M{$1}/g;

  print <<ENDUSAGE;

Usage: $usage

See perldoc $0 for details.

ENDUSAGE

  exit 2;
}

sub strip
{
  my $self = do { local(@ARGV,$/)=($0); <> };
  my($copy) = $self =~ /^=head\d\s+COPYRIGHT\s*^(.*?)^=\w+/ms;
  $copy =~ s/^(?=\S+)/    /gms;
  $self =~ s/^$HS+Do NOT edit.*?(?=^-)/$copy/ms;
  $self =~ s/^SKIP.*(?=^__DATA__)/SKIP
if (\@ARGV && \$ARGV[0] eq '--unstrip') {
  eval { require Devel::PPPort };
  \$@ and die "Cannot require Devel::PPPort, please install.\\n";
  if (eval \$Devel::PPPort::VERSION < $VERSION) {
    die "$0 was originally generated with Devel::PPPort $VERSION.\\n"
      . "Your Devel::PPPort is only version \$Devel::PPPort::VERSION.\\n"

t/001.t  view on Meta::CPAN

is $obj->server_limit, 16, "ServerLimit 16 (extra.conf.in)";

for (qw/shmsize server_limit thread_limit type generation
	restart_time lb_limit/) {
  t_debug "$_: ".$obj->$_;
}

t_start_error_log_watch;
{
  local $/;
  local @ARGV=($pidfile);
  my $pid=0+<>;
  t_debug "httpd pid=$pid";
  kill 'HUP', $pid;
}
warn "ERROR: Cannot restart apache"
  unless t_grep_file_watch qr/resuming normal operations/;
t_finish_error_log_watch;

is $obj->generation, $gen+1, "current generation=$gen+1 after restart";
$gen++;



( run in 0.728 second using v1.01-cache-2.11-cpan-49f99fa48dc )