1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-07 22:58:11 +00:00
freebsd-ports/www/apache13-fp/files/patch-al
Steve Price a9b998ac9a Update to version 1.3.4.
PR:		9617
Submitted by:	maintainer
1999-01-26 02:27:31 +00:00

30 lines
920 B
Plaintext

--- src/support/log_server_status.orig Fri Jan 1 13:05:34 1999
+++ src/support/log_server_status Mon Jan 18 17:18:16 1999
@@ -67,10 +67,10 @@
#
require 'sys/socket.ph';
-$wherelog = "/var/log/graph/"; # Logs will be like "/var/log/graph/960312"
+$wherelog = "/var/log/httpd-status-"; # Logs will be like "/var/log/httpd-status-960312"
$server = "localhost"; # Name of server, could be "www.foo.com"
$port = "80"; # Port on server
-$request = "/status/?auto"; # Request to send
+$request = "/server-status/?auto"; # Request to send
sub tcp_connect
{
@@ -93,11 +93,11 @@
### Main
{
- $date=`date +%y%m%d:%H%M%S`;
+ $date=`LC_TIME=C date +%y%m%d:%H%M%S`;
chop($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;