Re: Best way to set maximum number of open descriptors for a process
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, Feb 08, 2017 at 08:28:33AM -0300, Daniel Bareiro wrote:
> Hi!
[...]
> Maybe I could add something to the startup script, but maybe if the
> Debian package is updated, these changes will be lost. What do you
> suggest is the best way?
Yes, if the process is being started via a shell, ulimit seems the
way to go. In SysV init, either in the start script or perhaps in
/etc/defaults (which is then picked up by the start script).
Note that /etc is "taboo" for the distro[1], i.e. it will install
something there, but in won't touch anything which wasn't installed
by the distro, at least not without asking.
Sure systemd has a way to do that, but for that I'll have to defer
to the systemd experts.
[1] at least for civilised distros, like Debian.
regards
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlibBBUACgkQBcgs9XrR2kb0vQCeIx9lRmmoiZCT4bRjpyovQJBf
CVcAni3kA4bZLHnCGlqayf6mqQ9uml7W
=eX51
-----END PGP SIGNATURE-----
Reply to: