$OpenBSD: patch-conf_upsd_conf_sample,v 1.1 2010/01/15 11:25:15 sthen Exp $

from r1852 upstream;

* base the default maxconn on available filehandles.
* change the error message to better indicate that it's an error
not a warning.

--- conf/upsd.conf.sample.orig	Tue Jan 12 12:24:50 2010
+++ conf/upsd.conf.sample	Tue Jan 12 12:28:42 2010
@@ -34,8 +34,8 @@
 
 # =======================================================================
 # MAXCONN <connections>
-# MAXCONN 1024
 #
-# This defaults to 1024 connections. Each UPS, each LISTEN address and each
-# client count as one connection. If the server runs out of connections, it
-# will no longer accept new incoming client connections.
+# This defaults to maximum number allowed on your system.  Each UPS, each
+# LISTEN address and each client count as one connection.  If the server
+# runs out of connections, it will no longer accept new incoming client
+# connections.  Only set this if you know exactly what you're doing.
