Re: limits do not apply

2011-11-07 Thread Joerg Sonnenberger
On Mon, Nov 07, 2011 at 01:24:05PM +0900, rozhuk...@gmail.com wrote: Scripts for which the specified user inherit it from the startup script, rather than generate it based on the settings for the user. #su -m mysql -c '/bin/sh -c /usr/bin/env' Try to use su -c default -m mysql ... Joerg

RE: limits do not apply

2011-11-07 Thread rozhuk . im
Sent: Monday, November 07, 2011 6:20 PM To: freebsd-hackers@freebsd.org; hack...@freebsd.org Subject: Re: limits do not apply On Mon, Nov 07, 2011 at 01:24:05PM +0900, rozhuk...@gmail.com wrote: Scripts for which the specified user inherit it from the startup script, rather than generate

limits do not apply

2011-11-06 Thread rozhuk . im
At system startup, the init script is run with limits calculated on the basis of the core MAXFILES. After you run sysctl limits of the system may be altered, for example kern.maxfilesperproc, but the script will continue to work with the old values. This is bad in two ways: 1. When using the