summaryrefslogtreecommitdiff
path: root/www/apache21/files/patch-support:log_server_status.in
blob: 652edf444a4c239492412b82e5fc7477130c7333 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- support/log_server_status.in.orig	Thu Mar 14 05:48:06 2002
+++ support/log_server_status.in	Sun Apr  7 08:47:53 2002
@@ -63,10 +63,10 @@
 #
 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
+$request = "/status-status/?auto";     # Request to send
 
 sub tcp_connect
 {
@@ -96,7 +96,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;