At 08:56 AM 8/4/99 -0400, Pieckiel, Kevin A wrote:
>How do you increase the fd limit? I know that on a login shell, I can
>use ulimit to change certain limits for the current login and any child
>processes, but how on earth do you change that for a daemon that runs at
>startup and in the background?
ulimit changes the limit in the current shell *and* its descendents. So
just write a wrapper that calls ulimit and then executes your program in
the background.
For example, in /var/qmail/rc:
#/bin/sh
ulimit -n 1024
exec ... qmail-start ...
Note that you must be able to also change this limit globally and
permanently either at boot time or on the fly. This depends on the OS you use.
David.
______________________________________
David Villeger
(212) 972 2030 x34
http://www.CheetahMail.com
The Internet Email Publishing Solution