Synchronet v3.19b-Win32 (install) has been released (Jan-2022).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
faq:nix [2022/05/07 09:29] – [Maximum Open Files] Poor wording. Allow myself to introduce... myself. Andrefaq:nix [2022/05/07 20:43] – [Maximum Open Files] Reformatted using nelgin's better instructions. Andre
Line 260: Line 260:
 **Answer:**\\ **Answer:**\\
 You need to increase your maximum number of open files. You need to increase your maximum number of open files.
- +\\ \\ 
-To determine your open file limit, when logged in as the user Synchronet runs as, use the commands below. The hard limit is the systemwide limit, and the soft limit is one that a user can raise (up to the hard limit).+**Checking current open file limits**\\ 
 +The most reliable way to determine your open file limit is to login to your BBS as a sysop, run the '';SHELL'' [[module:str_cmds|string command]]and at the Linux command line use the commands below. The hard limit is the systemwide limit, and the soft limit is one that a user can raise (up to the hard limit).
  
 Soft limit: ''ulimit -Sn''\\ Soft limit: ''ulimit -Sn''\\
 Hard limit: ''ulimit -Hn'' Hard limit: ''ulimit -Hn''
  
-To alleviate the ERROR 24 problem on Linux, edit ''/etc/security/limits.conf'' to add the lines below.+**If you start Synchronet with systemd**\\ 
 +If you're using [[howto:systemd|systemd]] to start sbbs, edit your service file (usually sbbs.service) by adding the following line in the ''[Service]'' section:
  
-To raise the soft limit up to the hard limit for your Synchronet user, it is recommended to add this line: +<file sbbs.service
- +LimitNOFILE=10000
-<file limits.conf+
-yourBBSuser     soft     nofile     unlimited+
 </file> </file>
  
-If you are still receiving ERROR 24try raising both limits for all users by adding these lines instead:+After adding the line, reload the service file from the command line using ''systemctl daemon-reload''. Finally, restart Synchronet. 
 + 
 +**If you start Synchronet manually or with a shell script**\\ 
 +If you start sbbs with a shell scriptmanually from the command line, or some other similar method, edit ''/etc/security/limits.conf'' to add the lines below. 
 + 
 +To raise the soft limit for your Synchronet user, add this line:
  
 <file limits.conf> <file limits.conf>
-*               hard     nofile     unlimited +yourBBSuser     soft     nofile     10000
-*               soft     nofile     unlimited+
 </file> </file>
- + 
 + 
 +      
 ===== See Also ===== ===== See Also =====
   * [[:faq:|Frequently Asked Questions]]   * [[:faq:|Frequently Asked Questions]]