Subject: Re: Bumping shell limits for daemons?
To: Hauke Fath <hf@spg.tu-darmstadt.de>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 12/15/2005 16:35:59
--tjOMJDssiV0CZSJH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Dec 15, 2005 at 02:52:58PM +0100, Hauke Fath wrote:
> Is there a canonical way of adjusting shell limits for daemons started
> through rc.d scripts?

not that i know of.  what about

/etc/rc.conf.d/dovecot:

--- ><8 ---
start_precmd=3D"set_limits"

set_limits()
{
	ulimit -n 1024
}
--- 8>< ---


regards,

--=20
-- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org>   --

--tjOMJDssiV0CZSJH
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)

iD8DBQFDoY1fiwjDDlS8cmMRAm3vAJ4+T4fmUMnR1rEzMAXUtHGAydSKSACfbQEh
eBR3gMkjseL7Le0ZqtKvius=
=6VYB
-----END PGP SIGNATURE-----

--tjOMJDssiV0CZSJH--