From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5539713800E for ; Thu, 2 Aug 2012 05:54:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BB784E07DF; Thu, 2 Aug 2012 05:54:33 +0000 (UTC) Received: from smtpq2.gn.mail.iss.as9143.net (smtpq2.gn.mail.iss.as9143.net [212.54.34.165]) by pigeon.gentoo.org (Postfix) with ESMTP id AC00BE04D6 for ; Thu, 2 Aug 2012 05:52:22 +0000 (UTC) Received: from [212.54.34.132] (helo=smtp1.gn.mail.iss.as9143.net) by smtpq2.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1SwoKc-0006ej-4S for gentoo-user@lists.gentoo.org; Thu, 02 Aug 2012 07:52:22 +0200 Received: from 54698b76.cm-12-2c.dynamic.ziggo.nl ([84.105.139.118] helo=data.antarean.org) by smtp1.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1SwoKb-0005jv-40 for gentoo-user@lists.gentoo.org; Thu, 02 Aug 2012 07:52:22 +0200 Received: from localhost (localhost [127.0.0.1]) by data.antarean.org (Postfix) with ESMTP id A96CF1E15 for ; Thu, 2 Aug 2012 07:52:35 +0200 (CEST) X-Virus-Scanned: amavisd-new at antarean.org Received: from data.antarean.org ([127.0.0.1]) by localhost (data.antarean.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MRyKa+o77DVh for ; Thu, 2 Aug 2012 07:52:34 +0200 (CEST) Received: from eve.localnet (eve.lan.antarean.org [10.20.13.33]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by data.antarean.org (Postfix) with ESMTPS id 0BAA41CDA for ; Thu, 2 Aug 2012 07:52:34 +0200 (CEST) From: Joost Roeleveld To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Persistent ulimit for daemons Date: Thu, 02 Aug 2012 07:52:18 +0200 Message-ID: <1874615.e7G1xN5Syg@eve> User-Agent: KMail/4.8.0 (Linux/3.2.12-gentoo; KDE/4.8.1; x86_64; ; ) In-Reply-To: <50194025.5010103@orlitzky.com> References: <50194025.5010103@orlitzky.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Ziggo-spambar: / X-Ziggo-spamscore: -0.9 X-Ziggo-spamreport: BAYES_00=-1.9,FSL_RCVD_USER=0.001,RDNS_DYNAMIC=0.982,T_RP_MATCHES_RCVD=-0.01 X-Ziggo-Spam-Status: No X-Spam-Status: No X-Spam-Flag: No X-Archives-Salt: 8f58d2e4-bd64-45df-b48e-55ec4306b89a X-Archives-Hash: d795f458b11808be68a16027a6c29edb On Wednesday, August 01, 2012 10:41:41 AM Michael Orlitzky wrote: > Is there a blessed method these days for setting the ulimit per-daemon? > > The best I've been able to do is a global setting in /etc/rc.conf: > > rc_ulimit="-s 1048576" > > The entries under /etc/security seem to be ignored when using > `/etc/init.d/foo start`. Michael, I had to change the "nofiles" ulimit setting for my webserver. For that, I simply added the settings to the following file: # cat /etc/security/limits.conf | grep apache apache hard nofile 4096 apache soft nofile 4096 I would expect the same to work for any other daemon? HTH, Joost