Quote:
Originally Posted by slac
I need to apply the following configuration:
Code:
username hard nofile 524288
... To the file /etc/security/limits.conf in order to make Esync work but I do not know how.
|
Not clear on what the actual question is and I'm not familiar with "Esync", but the process is pretty standard.
Find out what the username is for the owner of the "Esync" service you want to adjust limits for. If there is no unique user associated with that service, look for a unique user-group name. If there is no unique name for that service to distinguish it from other users/groups, then you're best bet is to create a unique group and then set that group as the group for the "Esync" service.
The format for the file is:
Code:
[domain] [type] [item] [value]
[domain] is the unique username and or user-group name for the "Esync" service from above.
[type] is the type on limit enforcing, "hard" limits, or "soft" limits
[item] is what is being limited. In your case, you probably want to specify:
core – limits the core file size (KB)
data – max data size (KB)
fsize – maximum filesize (KB)
nofile – max number of open files
nproc – max number of processes
and maybe others (
https://linux.die.net/man/5/limits.conf)
[value] is the actual value that the [item] will be limited to
Quote:
Originally Posted by slac
How am I supposed to manage limits on LFS? Is /etc/limits related to such operations? If so, then how I do translate what is supposed to go into limits.conf to what it should go into /etc/limits, because as far as I see those probably are in different format.
Edit: By the way, I am not using PAM. That is why I am asking how to apply the configuration that is the code tags to /etc/limits instead of /etc/security/limits.conf
|
As far as I'm aware, there's no such "/etc/limits" file. You'll be dealing specifically with "/etc/security/limits.conf".
Since you mention that you're NOT using PAM for auth, then you need to preface your domain with the "@" symbol to search for a match with any defined users/groups in any group database back-end (PAM, LDAP, NIS, etc...)
Without knowing what the unique name is for [domain], or any of the [item](s) that you want/need to adjust, I can't give you a working example to try.
https://linux.die.net/man/5/limits.conf has an example that you can use, and edit as needed.
non-working example:
Code:
@esync-username soft nofile 1024
@esync-username soft fsize 819200
@esync-username hard nproc 20