[systemd-devel] 回复: 回复: 回复: 回复: 回复: 回复: 回复: 回复: [systemd-d e vel] sys t emctl can't executestopactually,whenserviceisstarted by other way
清辰
624001899 at qq.com
Wed Nov 1 11:07:42 UTC 2017
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"<lennart at poettering.net>;
发送时间: 2017年11月1日(星期三) 晚上6:17
收件人: "清辰"<624001899 at qq.com>;
抄送: "Oliver Neukum"<oneukum at suse.com>; "systemd-devel"<systemd-devel at lists.freedesktop.org>;
主题: Re: 回复: 回复: 回复: 回复: 回复: [systemd-devel] 回复: 回复: [systemd-d e vel] sys t emctl can't executestopactually,whenserviceisstarted by other way
On Mi, 01.11.17 17:59, 清辰 (624001899 at qq.com) 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20171101/4c73e36a/attachment.html>
More information about the systemd-devel
mailing list