Hello,I was thinking that adding more examples in the Syncthing README would be helpful for new OBSD users. I definitely struggled understanding what these were at first and examples that I could copy would've helped me I think.
What do you think, edd@ ? -- Jag Talon (he/him) https://jagtalon.net/ https://weirder.earth/@jag https://aangat.lahat.computer/
Index: pkg/README =================================================================== RCS file: /cvs/ports/net/syncthing/pkg/README,v retrieving revision 1.7 diff -u -p -u -r1.7 README --- pkg/README 17 Dec 2023 15:43:12 -0000 1.7 +++ pkg/README 12 Feb 2024 16:53:32 -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-cur=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