Hi Lennart,

For example, shell command: ulimit -Sn `ulimit -Hn`
It will set soft limit to hard limit.


I want to achieve it in systemd.unit.


Can you get my point?




------------------ ???????? ------------------
??????: "Lennart Poettering"<[email protected]>; 
????????: 2017??11??1??(??????) ????6:17
??????: "????"<[email protected]>; 
????: "Oliver Neukum"<[email protected]>; 
"systemd-devel"<[email protected]>; 
????: Re: ?????? ?????? ?????? ?????? ?????? [systemd-devel] ?????? ??????  
[systemd-d e vel] sys t emctl can't executestopactually,whenserviceisstarted by 
other way



On Mi, 01.11.17 17:59, ???? ([email protected]) wrote:

> Hi Lennart,
> That is important for me. Could you tell me that?

I am sorry, but I don't understand the question? 

> This documentation says I can set by
> LimitCORE="0;0"
> 
> 
> But my request is:
> For example, now system hard limit of core is infinity, I want to set soft 
> limit to infinity.
> But when hard limit is 0, I want to set soft limit to 0.
> when hard limit is 100, I want to set soft limit to 100.
> 
> 
> But how to know system hard limit? Is there a petty way to get hard limit?


Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to