Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #177553

Re: Best way to set maximum number of open descriptors for a process

From <tomas@tuxteam.de>
Newsgroups linux.debian.user
Subject Re: Best way to set maximum number of open descriptors for a process
Date 2017-02-08 12:50 +0100
Message-ID <t8yV4-8fB-15@gated-at.bofh.it> (permalink)
References <t8yBH-88n-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


-----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-----

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Best way to set maximum number of open descriptors for a process Daniel Bareiro <daniel-listas@gmx.net> - 2017-02-08 12:30 +0100
  Re: Best way to set maximum number of open descriptors for a process <tomas@tuxteam.de> - 2017-02-08 12:50 +0100
    Re: Best way to set maximum number of open descriptors for a process Daniel Bareiro <daniel-listas@gmx.net> - 2017-02-08 13:30 +0100
      Re: Best way to set maximum number of open descriptors for a process Greg Wooledge <wooledg@eeg.ccf.org> - 2017-02-08 14:30 +0100
        Re: Best way to set maximum number of open descriptors for a process Daniel Bareiro <daniel-listas@gmx.net> - 2017-02-08 16:40 +0100
          Re: Best way to set maximum number of open descriptors for a process Sven Hartge <sven@svenhartge.de> - 2017-02-08 18:40 +0100
            Re: Best way to set maximum number of open descriptors for a process Daniel Bareiro <daniel-listas@gmx.net> - 2017-02-09 00:30 +0100

csiph-web