[systemd-devel] How to properly allow user to adjust LimitNOFILE?

2011-11-22 Thread Peter Lemenkov
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

Re: [systemd-devel] How to properly allow user to adjust LimitNOFILE?

2011-11-22 Thread Mathieu Bridon
On Tue, 2011-11-22 at 20:51 +0300, Peter Lemenkov wrote: > 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