[systemd-devel] Subprocess

Lennart Poettering lennart at poettering.net
Tue Jan 12 09:18:52 PST 2016


On Mon, 11.01.16 19:58, Mihamina RAKOTOMANDIMBY (mihamina-rakotomandimby at rktmb.org) wrote:

> Hi all,
> 
> Walking trhough my virtual machines, I noticed something strange:
> The sensu process is inside the CFEngine CGroup.
> 
> This is mainly because of the way I launch Sensu after install
> 
> Please have a look at
>  https://bitbucket.org/snippets/rakotomandimby/nLkaM
> 
> How should I launch Sensu on systemd enabled system in order to have it
> in a dedicated CGroup? Should I create the service file and start it
> instead?

I have no idea about cfengine, and never heard of "sensu", but
if you have some daemon that starts some other daemon, make sure it
does so through systemd. i.e. fork off "systemctl", or use some bus
calls, or so. 

On some distros sysv scripts forward to systemctl internally, but that
might not work on other distros, or 3rd party scripts.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list