Stumbled across the following error on a new relay:
Failing because we have 991 connections already. Please read doc/TUNING
for guidance.
This document contains information about `kern.maxfiles' (sysctl) and
`openfiles-max' (login.conf).
OK?
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/tor/Makefile,v
retrieving revision 1.114
diff -u -p -r1.114 Makefile
--- Makefile 13 Jun 2018 13:59:57 -0000 1.114
+++ Makefile 28 Jun 2018 15:41:17 -0000
@@ -3,6 +3,7 @@
COMMENT= anonymity service using onion routing
DISTNAME= tor-0.3.3.7
+REVISION= 0
CATEGORIES= net
HOMEPAGE= https://www.torproject.org/
@@ -31,5 +32,8 @@ DB_DIR= /var/tor
SUBST_VARS+= DB_DIR
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/doc/TUNING ${PREFIX}/share/doc/tor/
.include <bsd.port.mk>
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/tor/pkg/PLIST,v
retrieving revision 1.8
diff -u -p -r1.8 PLIST
--- pkg/PLIST 11 Sep 2013 15:57:37 -0000 1.8
+++ pkg/PLIST 28 Jun 2018 15:41:32 -0000
@@ -1,6 +1,7 @@
@comment $OpenBSD: PLIST,v 1.8 2013/09/11 15:57:37 pascal Exp $
@newgroup _tor:566
@newuser _tor:566:566:daemon:tor:/nonexistent:/sbin/nologin
+@rcscript ${RCDIR}/tor
@bin bin/tor
@bin bin/tor-gencert
@bin bin/tor-resolve
@@ -10,6 +11,7 @@
@man man/man1/tor.1
@comment @man man/man1/torify.1
share/doc/tor/
+share/doc/tor/TUNING
share/doc/tor/tor-gencert.html
share/doc/tor/tor-resolve.html
share/doc/tor/tor.html
@@ -28,4 +30,3 @@ share/examples/tor/torrc.sample
share/tor/
share/tor/geoip
share/tor/geoip6
-@rcscript ${RCDIR}/tor