On Thu, Aug 12, 2010 at 11:38 AM, Lennart Poettering <[email protected]> wrote: > agents for that, and simply forward this to the D-Bus system bus, but my > stomach revolts every time I get reminded that each time a service exits > we spawn a little agent process just for that. >
Agreed. I don't like release_agent much either. As I said, it was just for cpusets backwards-compatibility. (Cgroups originally descended from cpusets in a backward-compatible way. Although in hindsight this was probably not the best long-term plan, it seemed the only way to get the system adopted at the time). At Google our systemd-like controller relies on spotting the root process of the service exiting, at which point the service is considered dead - that way stray lingering processes don't keep the service unnecessarily alive. But if you want to spot when the service is dead, you could just poll the contents of the cgroup.procs file to see if it's empty. Paul ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
