ulimit (again. sorry!)
I see that it has been asked before and I have read everything that I could find, but nothing works.
I need to do a ulimit -Hn some high number (it is currently 4096) on my 14.2-x86_64.
So following what I read here, I made:
/etc/limits
-----------
@users N4194304 U4194304
gamer N4194304 U4194304
and I made
/sbin/initscript
--------------
# Set umask to safe level, and enable core dumps.
umask 022
ulimit -c 4194304
ulimit -Sn 4194304
ulimit -Hn 4194304
PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PATH
# Execute the program.
* soft nofile 4194304
* hard nofile 4194304
eval exec "$4"
I rebooted and
~ # ulimit -Hn^M
4096
What am I leaving out? What did I forget? What did I do wrong?
Anyone? Please help!
Last edited by white falcon; 11-27-2018 at 10:31 AM.
|