Matt,

On Wed, Mar 11, 2009 at 11:42:54AM +0100, Matt wrote:
> I've been running Nginx with php-fastcgi and am sometimes experiencing
> the 'too many files open' error messages.
> Investigating the solution I am confused about which user (or userclass
> in login.conf)  I should give more filedescriptors.
>
> Setup (single machine)
>
> - Nginx deamon running as 'www'

If nginx is running as 'www' then you're building your own nginx rather
than using the package? If so, then nginx is starting however you tell
it, and without details it's impossible to say.

> - Apache running as 'www' also (overlapping doc root)
>
> -Several php-fastcgi processes (Nginx w. Lighttp's spawn-fcgi) running
> as actual users.
> These actual users have a nologin class and can only use chrooted SFTP.
>
> I'm kinda lost on which user / which (new) login.conf class I should
> give more filedescriptors.
> Or how to find out which particular users/deamon needs them.

You can specify a the login class you desire when starting a daemon. See
su(1), specifically the '-c login-class' option. A common practice is to
copy the 'daemon' class to a new login.conf entry named whatever you
like, start your daemon using that class, then tweak as desired.

For lots of details about doing that, search the archives for 'mysql'
and 'login.conf'...

--
Darrin Chandler            |  Phoenix BSD User Group  |  MetaBUG
dwchand...@stilyagin.com   |  http://phxbug.org/      |  http://metabug.org/
http://www.stilyagin.com/  |  Daemons in the Desert   |  Global BUG
Federation

[demime 1.01d removed an attachment of type application/pgp-signature]

Reply via email to