Hi, I found another simple way to do that, add the limit to /etc/login.conf (nginx, php_fpm), use /etc/rc.d/daemon script to start nginx,php_fpm
nginx:\
:maxproc=0:\
:tc=daemon:
php_fpm:\
:maxproc=0:\
:tc=daemon:
because the parent is runas root, and root can break those limit,
but the child is not runas root, so they can not break those limit.
thank you.
