Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Greg Wooledge Newsgroups: linux.debian.user Subject: Re: Best way to set maximum number of open descriptors for a process Date: Wed, 08 Feb 2017 14:30:03 +0100 Message-ID: References: X-Mailbox-Line: From debian-user-request@lists.debian.org Wed Feb 8 13:20:18 2017 Old-Return-Path: X-Amavis-Spam-Status: No, score=-10.199 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RP_MATCHES_RCVD=-3.199] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -6.1 Mail-Followup-To: debian-user@lists.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Mailing-List: archive/latest/717157 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20170208132002.GD7168@eeg.ccf.org Approved: robomod@news.nic.it Lines: 10 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 8 Feb 2017 08:20:02 -0500 X-Original-Message-ID: <20170208132002.GD7168@eeg.ccf.org> X-Original-References: <9f43e085-36a7-0883-770b-7dce3f83e439@gmx.net> <20170208114213.GA10630@tuxteam.de> <80a55aa2-2bc3-420f-8f0b-5ecd7df8cdea@gmx.net> Xref: csiph.com linux.debian.user:177555 On Wed, Feb 08, 2017 at 09:26:14AM -0300, Daniel Bareiro wrote: > The process starts as a service, so it does not require a shell: > I had thought that I could add something to the script that starts the > process, but I'm not sure if it's the best idea from the point of view > of maintainability because a package update could eliminate that change. I believe the correct approach is to add one of the limitXXXX= directives to the systemd unit. See systemd.exec(5) for details. Searching for the word "limit" gets you to the correct section.