Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Apr 2001 18:04:33 +0200
From:      "John Andersson" <yottaman@writeme.com>
To:        "'Alfred Perlstein'" <bright@wintelcom.net>
Cc:        <freebsd-stable@FreeBSD.ORG>
Subject:   RE: Delayed effects of sysctl.conf
Message-ID:  <000c01c0d18f$3ef97c00$0fad2fc2@te31002>
In-Reply-To: <20010430085715.F18676@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
I didn't find and info about the ulimit built-in, but I actually made a
successful test by modified the ircd startup script by adding "su -l
xxxx -c /usr/.../ircd". It does not work without the "-l" parameter. It
seems a bit strange though, that this should be needed. Probably is the
number of descriptors info saved in the shell process somehow, and ircd
is using that info.

Thanks for the help!

Regards,
John


> -----Original Message-----
> From: owner-freebsd-stable@FreeBSD.ORG [mailto:owner-freebsd-
> stable@FreeBSD.ORG] On Behalf Of 'Alfred Perlstein'
> Sent: den 30 april 2001 17:57
> To: John Andersson
> Cc: freebsd-stable@FreeBSD.ORG
> Subject: Re: Delayed effects of sysctl.conf
>=20
> * John Andersson <yottaman@writeme.com> [010430 08:54] wrote:
> > The ircd is started by a startup script in
> /usr/local/etc/rc.d/. I
> > looked at the /etc/rc script and noticed (as you said) that
> sysctl.conf
> > is read long before the ircd startup script.
> >
> > Still, ircd does not notice the changes in maxfiles. Similar
> effects can
> > be found by executing the "limit" built-in command in tcsh,
> that reports
> > the number of descriptors. It does not see the changes
> directly after
> > "sysctl -w kern.maxfiles", but it does so later, after a
> login.
>=20
> You probably want to use the ulimit builtin to request a larger
> limit in your startup script.
>=20
> -Alfred
>=20
>=20
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000c01c0d18f$3ef97c00$0fad2fc2>