[systemd-devel] running systemd in a cgroup: future compatibility

Josh Snyder joshs at netflix.com
Wed Feb 14 15:45:26 UTC 2018


On Wed, Feb 14, 2018 at 1:38 AM, Lennart Poettering
<lennart at poettering.net> wrote:
>
> That all said, I think we should really try to make systemd work with
> your usecase directly and natively, i.e. add enough flexibility to
> systemd so that you don't have to wrap it in such a "foreign" prefix
> cgroup to do what you want... For example, if PID 1 knew a
> "DefaultSlice=" option in /etc/systemd/system.conf, and
> logind/machined knew similar options in their respective configuration
> files you could do what you are trying to do without leaving systemd
> territory relatively easily. Just set those options to some slice
> further down thre tree, and you could leave machined run inside of
> systemd just fine without having to arrange anything outside of it...

If the feature you describe existed, I'd throw away my initramfs script in a
heartbeat.

Josh


More information about the systemd-devel mailing list