LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-27-2018, 10:09 AM   #1
white falcon
LQ Newbie
 
Registered: Jul 2016
Posts: 5

Rep: Reputation: Disabled
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.
 
Old 11-27-2018, 11:37 AM   #2
white falcon
LQ Newbie
 
Registered: Jul 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
ulimit thing solved

That number was too high.
AND I needed to repeat 'ulimit -Hn xxxxxx' in my /etc/profile.

So I created:
/etc/limits (I symlinked it to /etc/limits.conf)
@users N1048576 U1048576

/sbin/initscripts (I symlinked that to /etc/)
# Set umask to safe level, and enable core dumps.
umask 022
ulimit -c 1048576
ulimit -Hn 1048576
ulimit -v unlimited
PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PATH

# Execute the program.

eval exec "$4"
--
And it is a fully functional example.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ulimit -s 40960 vs ulimit ulimit -s 10240 centguy Linux - Software 2 10-22-2016 11:38 PM
[SOLVED] Cannot set ulimit -l, says ulimit: max locked memory: cannot modify limit Xiano Slackware 1 07-24-2014 02:58 AM
Dualbooting again, again, again... Procrastinator Linux - General 4 10-28-2004 11:04 AM
another nvidia problem, sorry sorry sorry mechanicalg0d Mandriva 2 10-27-2003 03:35 AM
Need help installing Mandrake (again, again, again...) DicedMalt Mandriva 6 08-26-2003 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration