On Fri, Feb 16, 2024 at 09:56:08AM +0000, Edd Barrett wrote:
> kn@ is about to commit an update to syncthing. I'll add this change on top
> after.

Here's an updated diff.

I made a couple of tweaks:
 - Added the required REVISION bump.
 - You had `:openfiles-cur=4096:\` twice. I assume you meant openfiles-max for
   the second occurance?


CC kn@. OK?


Index: Makefile
===================================================================
RCS file: /cvs/ports/net/syncthing/Makefile,v
diff -u -p -r1.61 Makefile
--- Makefile    16 Feb 2024 10:04:39 -0000      1.61
+++ Makefile    16 Feb 2024 11:11:32 -0000
@@ -1,6 +1,7 @@
 COMMENT =      open decentralized synchronization utility
 
 V =            1.27.3
+REVISION =     0
 DISTNAME =     syncthing-${V}
 DISTFILES =    syncthing-source-v${V}${EXTRACT_SUFX}
 
Index: pkg/README
===================================================================
RCS file: /cvs/ports/net/syncthing/pkg/README,v
diff -u -p -r1.7 README
--- pkg/README  17 Dec 2023 15:43:12 -0000      1.7
+++ pkg/README  16 Feb 2024 11:15:17 -0000
@@ -62,13 +62,26 @@ Syncthing more file descriptors by addin
                 :openfiles-max=4096:\
                 :tc=daemon:
 
+If you run Syncthing manually, you can add the following to the appropriate
+login class. If you're in the staff login class, you can add the following
+lines under the staff section:
+
+       staff:\
+                [...]
+                :openfiles-cur=4096:\
+                :openfiles-max=4096:\
+                [...]
+
 Don't forget to rebuild the login.conf.db file (if necessary):
 
-        # [ -f /etc/login.conf.db ] && cap_mkdb /etc/login.conf
+       # [ -f /etc/login.conf.db ] && cap_mkdb /etc/login.conf
 
 Note that in addition to ulimits, there is a kernel-level file descriptor limit
 which may also need to be adjusted. This limit is managed through the
-kern.maxfiles sysctl(8).
+kern.maxfiles sysctl(8):
+
+       # sysctl kern.maxfiles=4096
+       # echo "kern.maxfiles=4096" >> /etc/sysctl.conf
 
 Another option is to turn off the file watcher and use only periodic scans.
 This will result in much reduced file descriptor usage at the cost of a

-- 
Best Regards
Edd Barrett

https://www.theunixzoo.co.uk

Reply via email to