5ac76d39ce
piled up and additional patches conflict. This also will help when we try to syncronize www/apache20&www/apache22 With Hat: apache@
20 lines
786 B
Text
20 lines
786 B
Text
--- ./support/log_server_status.in.orig 2006-07-12 03:40:55.000000000 -0400
|
|
+++ ./support/log_server_status.in 2010-05-06 16:06:03.800835018 -0400
|
|
@@ -27,7 +27,7 @@
|
|
#
|
|
require 'sys/socket.ph';
|
|
|
|
-$wherelog = "/var/log/graph/"; # Logs will be like "/var/log/graph/19960312"
|
|
+$wherelog = "@logfiledir@/httpd-status-"; # Logs will be like "/var/log/httpd-status-19960312.log"
|
|
$server = "localhost"; # Name of server, could be "www.foo.com"
|
|
$port = "80"; # Port on server
|
|
$request = "/status/?auto"; # Request to send
|
|
@@ -60,7 +60,7 @@
|
|
chomp($date);
|
|
($day,$time)=split(/:/,$date);
|
|
$res=&tcp_connect($server,$port);
|
|
- open(OUT,">>$wherelog$day");
|
|
+ open(OUT,">>$wherelog$day.log");
|
|
if ($res) {
|
|
print OUT "$time:-1:-1:-1:-1:$res\n";
|
|
exit 1;
|