[systemd-devel] systemd release agent

Lennart Poettering lennart at poettering.net
Wed Apr 17 08:29:49 PDT 2013


On Wed, 17.04.13 18:17, Kevin Wilson (wkevils at gmail.com) wrote:

> 
> Hello,
> Thanks a lot for your answer and micahl schmidt.
> I made several more tests and I wonder whether there are at all
> any such tasks with which systemd uses the release agents.

Well, many many services fork of porcesses. Apache does, CUPS does, udev
does, cron does, avahi does, libvrit does, upower does, NetworkManager
does, accounts-daemon does, atd does, gdm, dbus does, ...

Substantially more services that I have running on my system fork off
processes than do not.

> There are some exceptions.
> Specifically I tried with rsyslog.services and polkit.service.
> These two services has each several services in tasks.

These processes have threads, and the tasks files shows normal processes
as well as processes. Threads of course are weird things, and die
together with a process.

> I wonder if someone knows about a service when a SIGCHLD is not sent?
> Or maybe the releas agent is only good for the case when the cgroup
> runs empty, when all the  "grandchildren" are dead (as the case
> Lennart mentioned).

Well, look for processes that actually fork off real processes rather
than just contain threads...

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list