summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>1997-10-12 00:26:24 +0000
committerBob Beck <beck@cvs.openbsd.org>1997-10-12 00:26:24 +0000
commitb6c079f3c7e99da9f065e25ed8c9cbdedace3c40 (patch)
tree7d4bfc6c5430d1a1ea1ee02c0fb96fc9ba2d1805
parentc8cad4fc7a6595bb6444ef7c6895dec19a248a61 (diff)
Documentation for -O switch on supfilesrv.
-rw-r--r--usr.bin/sup/src/supservers.821
1 files changed, 19 insertions, 2 deletions
diff --git a/usr.bin/sup/src/supservers.8 b/usr.bin/sup/src/supservers.8
index 99cd0677651..ad775011bcb 100644
--- a/usr.bin/sup/src/supservers.8
+++ b/usr.bin/sup/src/supservers.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: supservers.8,v 1.3 1997/04/01 07:35:50 todd Exp $
+.\" $OpenBSD: supservers.8,v 1.4 1997/10/12 00:26:23 beck Exp $
.\"
.\" Copyright (c) 1992 Carnegie Mellon University
.\" All Rights Reserved.
@@ -49,7 +49,9 @@ supfilesrv
-P
] [
.I -C MaxChildren
-]
+] [
+.I -O lockdir
+]
.br
supscan [
.I
@@ -131,6 +133,21 @@ process for each client. If it gets additional requests it will respond
with the error FSSETUPBUSY. The -C MaxChildren switch can be used
to increase (or decrease) this number.
+
+The -O lockdir switch is used to make
+.I supfilesrv
+allow only one active connection at a time from any client ip address.
+This is accomplished by each serving process obtaining exclusive lock,
+and writing it's process ID into a file in "lockdir" where the filename
+is the dotted decimal ip address of the connecting host. Any
+connections from a client where a lock can not be obtained on such a file
+will be rejected, limiting any client host to one connection at a time
+to this sup server. This is useful for preventing problems where
+clients running
+.I sup
+on a regular basis manage to time requests so that a second request
+comes in before the first one completes.
+
.SH "SUPSCAN"
It is possible to pre-compile a list of the files in a collection
to make