[systemd-devel] How to properly allow user to adjust LimitNOFILE?
Peter Lemenkov
lemenkov at gmail.com
Tue Nov 22 09:51:24 PST 2011
Hello!
I already found that I could add "LimitNOFILE=2048" to the "Service"
section to explicitly set max number of opened files but I need
something different. I want to allow user to specify it and set it
only in case he specifies it. It looks like I should use something
like "ExecStartPre=ulimit -n $ULIMIT_MAX_FILES" where ULIMIT_MAX_FILES
is read from EnvironmentFile, but maybe there are some other
recommended ways?
--
With best regards, Peter Lemenkov.
More information about the systemd-devel
mailing list