From owner-freebsd-questions Thu Aug 2 7: 1:45 2001 Delivered-To: freebsd-questions@freebsd.org Received: from comp04.prc.uic.edu (comp04.prc.uic.edu [128.248.230.104]) by hub.freebsd.org (Postfix) with SMTP id F1F9537B401 for ; Thu, 2 Aug 2001 07:01:38 -0700 (PDT) (envelope-from lucas@comp04.prc.uic.edu) Received: (qmail 95684 invoked by uid 1000); 2 Aug 2001 14:02:00 -0000 Date: Thu, 2 Aug 2001 09:02:00 -0500 From: Lucas Bergman To: =?iso-8859-1?Q?Jo=E3o_Pagaime?= Cc: freebsd-questions@freebsd.org Subject: Re: inetd/daemon limits Message-ID: <20010802090200.B94419@comp04.prc.uic.edu> Reply-To: lucas@slb.to References: <000d01c11b45$db85d8c0$dc0788c1@jpsp2> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <000d01c11b45$db85d8c0$dc0788c1@jpsp2>; from jpsp@fccn.pt on Thu, Aug 02, 2001 at 12:25:39PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > I would like to impose limits (max. memory, mostly) on a service > spawned by the inetd... Of course I could configure system wide > limits through a kernel compilation, or "sysctl" calls, but I would > prefer to fine tune this limits to one specific service (imapd). Make a new login class in /etc/login.conf (called, say, "imapd") with the resource limits you want. Then, instead of putting just "root" in the fifth field of the imapd line of /etc/inetd.conf, put "root/imapd" to run with the new login class (the default is "daemon"). Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message