Using apache as an example:

Create the file /etc/rc.conf.d/apache

and put in it:

start_precmd="ulimit -n 1024"


This should work for anything in rc.conf.

You can also set a "global" rc.conf ulimit by putting start_precmd in /etc/rc.conf itself

is although here:http://wiki.netbsd.org/tutorials/tuning_netbsd_for_performance/
Comment by emmanuel-kasper Friday evening, November 7th, 2014
Add a comment
Contact | Disclaimer | Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.
NetBSD® is a registered trademark of The NetBSD Foundation, Inc.