Subject: ypserv needs more files
To: None <firstname.lastname@example.org>
From: C Kane <email@example.com>
Date: 07/27/2001 00:23:28
My ypserv needs more than the default number of open files.
I have the following script which I use to run ypserv:
limit openfiles unlimited
What is the proper way, within the framework of the NetBSD
/etc/rc.d startup scripts, to start ypserv with more than just 64
maximum open files? That default is way too low. We have
nearly that many NIS maps, and after ypserv opens
/etc/hosts.allow and /etc/hosts.deny a few times, the ypserv
starts sending error messages to syslog about no more open files,
sucking most of the CPU, and not serving maps anymore.
Also, I must run ypserv with the -f flag and within a loop
because occasionally svc_run returns and ypserv dies.
Thanks for any help with those problems.