Subject: Re: raising maxproc at boot time?
To: Jeff Rizzo <riz@boogers.sf.ca.us>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 09/17/2001 21:09:05
On Fri, Sep 14, 2001 at 03:49:41PM -0700, Jeff Rizzo wrote:
> I'm hoping someone has a suggestion for the best way to handle this.
> 
> I've got a netbsd-1.5.2 system running apache, and I want to
> raise the maximum number of processes it can generate.  I've
> figured out how to do it once the process is launched, using
> sysctl -w proc.<pid>.rlimit.maxproc.soft=<number>, and I know
> about "ulimit" in the shell.  What I'd like to know is which rc
> script I should edit to cause this to happen correctly at boot
> time, and what the edit should look like.
> 
> I'm using apache 1.3.20 from pkgsrc, if it matters...

The best place for this would to be put a
sysctl -w proc.curproc.rlimit.maxproc.soft=<number>
in the /etc/rc.d/apache start script itsef.

--
Manuel Bouyer <bouyer@antioche.eu.org>
--