[systemd-devel] restricting resource of a process within a service

2017-10-17 Thread Armen Baloyan
Hi, I need to restrict CPU usage for a process that runs in a service. The service has over 10 processes running but I need to put restrictions only on 1 of those processes. Is it possible to move this process to a separate cgroup or it cannot be removed its service's cgroup? Armen Baloyan | Lin

Re: [systemd-devel] Why do passive target units have to exist?

2017-10-17 Thread Andrei Borzenkov
16.10.2017 18:15, 林自均 пишет: > Hi folks, > > I am reading systemd documents, and I find passive target units a little > bit confusing. > > Take "network.target" for example: > > "systemd-networkd.service" specifies "Wants=network.target" and > "Before=network.target". That effectively makes star

Re: [systemd-devel] Why is the [Install] section in a drop-in not respected?

2017-10-17 Thread 林自均
Hi Zbyszek, Got it! I will file an RFE and a pull request for that. Thanks so much! John Zbigniew Jędrzejewski-Szmek 於 2017年10月17日 週二 22:40 寫道: > On Tue, Oct 17, 2017 at 09:49:36AM +, 林自均 wrote: > > Hi folks, > > > > I learned that [Install] section in a drop-in is not respected. This > >

Re: [systemd-devel] Why is the [Install] section in a drop-in not respected?

2017-10-17 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Oct 17, 2017 at 09:49:36AM +, 林自均 wrote: > Hi folks, > > I learned that [Install] section in a drop-in is not respected. This > behavior is documented, but I failed to see *why*. > > I found this related GitHub issue: > https://github.com/systemd/systemd/issues/1774, and here is the q

[systemd-devel] Why is the [Install] section in a drop-in not respected?

2017-10-17 Thread 林自均
Hi folks, I learned that [Install] section in a drop-in is not respected. This behavior is documented, but I failed to see *why*. I found this related GitHub issue: https://github.com/systemd/systemd/issues/1774, and here is the quote from "poettering commented on 5 Nov 2015": > Well, this has b