1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/www/apache22/files/patch-support:log_server_status.in
Clement Laforet a3468fefcb - Add apache 2.1.2
This is a development version, awaiting for 2.2
2004-12-11 18:06:04 +00:00

21 lines
760 B
Plaintext

--- support/log_server_status.in.orig Tue Jun 18 23:21:53 2002
+++ support/log_server_status.in Tue Jun 18 23:23:08 2002
@@ -63,7 +63,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
@@ -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;