Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
faq:nix [2022/05/07 09:27] – Fixed broken anchor link. Cleaned up the entry a bit and clarified how the limits work. Andre | faq:nix [2022/05/07 18:50] – [Maximum Open Files] added systemd section. nelgin | ||
---|---|---|---|
Line 261: | Line 261: | ||
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 a soft limit that a user can raise (up to the hard limit). | + | 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). |
Soft limit: '' | Soft limit: '' | ||
Hard limit: '' | Hard limit: '' | ||
- | To alleviate the ERROR 24 problem on Linux, edit ''/ | + | To alleviate the ERROR 24 problem on Linux, |
+ | |||
+ | |||
+ | If you're not using systemd to start sbbs you can edit ''/ | ||
To raise the soft limit up to the hard limit for your Synchronet user, it is recommended to add this line: | To raise the soft limit up to the hard limit for your Synchronet user, it is recommended to add this line: | ||
Line 281: | Line 284: | ||
</ | </ | ||
+ | |||
+ | If you are running sbbs from systemd then you'll need to edit your service file. Add the following line in the [Service] section | ||
+ | |||
+ | | ||
+ | Reload the service file | ||
+ | |||
+ | | ||
+ | This will give you a safety net in case a runaway process tries to open a lot of files. Don't forget to restart your bbs after making the change. | ||
+ | |||
+ | To verify the number of files, you can use the sysop ;SHELL command and run | ||
+ | |||
+ | ulimit -a | ||
+ | to see exactly which limits your process is to conform to. | ||
+ | |||
+ | | ||
===== See Also ===== | ===== See Also ===== | ||
* [[: | * [[: |