Subject: Re: raising maxproc at boot time?
To: None <netbsd-help@netbsd.org>
From: Jeff Rizzo <riz@boogers.sf.ca.us>
List: netbsd-help
Date: 09/21/2001 08:40:40
In case anyone cares, I found that the best place to do this is
actually in rc.local, as follows:

/usr/pkg/etc/rc.d/apache start
sysctl -w proc.`cat /var/run/httpd.pid`.rlimit.maxproc.soft=500


+j

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...
> 
> +j
> -- 
> Jeff Rizzo                                         http://boogers.sf.ca.us/~riz

-- 
Jeff Rizzo                                         http://boogers.sf.ca.us/~riz