Re: [systemd-devel] How to get all PIDs in a service

2015-06-08 Thread Lennart Poettering
On Sun, 07.06.15 02:01, David Herrmann ([email protected]) wrote: > Hi > > On Thu, Jun 4, 2015 at 6:31 PM, Andrei Borzenkov wrote: > > В Thu, 04 Jun 2015 10:08:52 +0200 > > Sébastien Luttringer пишет: > >> What's the right way to get all pid belonging to a service? How can I > >> unescape s

Re: [systemd-devel] How to get all PIDs in a service

2015-06-06 Thread David Herrmann
Hi On Thu, Jun 4, 2015 at 6:31 PM, Andrei Borzenkov wrote: > В Thu, 04 Jun 2015 10:08:52 +0200 > Sébastien Luttringer пишет: >> What's the right way to get all pid belonging to a service? How can I >> unescape strings from systemctl? >> > > Well, you can use systemd-escape -u, but real question

Re: [systemd-devel] How to get all PIDs in a service

2015-06-05 Thread Sébastien Luttringer
On Thu, 2015-06-04 at 19:31 +0300, Andrei Borzenkov wrote: > В Thu, 04 Jun 2015 10:08:52 +0200 > Sébastien Luttringer пишет: > It seems to work here using systemd 210 on openSUSE > > bor@opensuse:~/src/systemd> cat /sys/fs/cgroup/systemd/$(systemctl > show > [email protected] -p Co

Re: [systemd-devel] How to get all PIDs in a service

2015-06-04 Thread Andrei Borzenkov
В Thu, 04 Jun 2015 10:08:52 +0200 Sébastien Luttringer пишет: > Hello, > > In order to restart updated daemons on filesystems, I created a > script[1] which lists all PID by service and look for updated files in > /proc/$pid/maps. > > To get all PIDs of a service, I use "systemctl show -p Contr

[systemd-devel] How to get all PIDs in a service

2015-06-04 Thread Sébastien Luttringer
Hello, In order to restart updated daemons on filesystems, I created a script[1] which lists all PID by service and look for updated files in /proc/$pid/maps. To get all PIDs of a service, I use "systemctl show -p ControlGroup" to craft a path to the "tasks" file. But something wrong happen with