[systemd-devel] The question about process limits in systemd

Firxiao zhang firxiaowork at gmail.com
Wed Feb 28 01:30:02 UTC 2018


Hi All.
    I am confusing the relationship between "systemd" and
"/etc/security/limits.conf".
so far, I am migrating a service(init.d) script(centos6) to systemd
unit(centos7).
on centos6, I defined the user limits in "/etc/security/limits.conf". and
it worked well.
after I done the same thing on centos7. I found the limits was not taking
effect. so I googled this problem. it said I need define the limits in
systemd unit file. like: LimitNOFILE=xxx.
Here are my questions:
1. are the systemd limits and the system security limits  individual?
2. if not. is there a way to make systemd read the system security limits
as default?

it would be appreciated for your help. thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180228/e2123684/attachment.html>


More information about the systemd-devel mailing list