Hi!
I have an application, that need additional filedescriptors.
Code:
# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
As you can see, I have a limit of 1024 descriptors (this is also the hard limit, mind you).
Now, I'd like to increase this value, say, double it.
I can do this with the 'ulimit -n 2048' command, for the current user.
Setting the limit this way, is not global and not permanent.
Changing the setting in /etc/security/limits.conf is not option either, since the user for what I need to change the limit, is a system user with no login shell (/bin/false).
The application is being started from an init script with the start-stop-daemon tool, it changes to the specified user once it's invoked.
How can I change that limit to my needs, when the user under which my application is run, has no login shell?
please help!
--polemon