> он не работает. Попробуй его запустить на системе из ядра которой выключен
> cgroups. Удачной перестановки системы.Systemd раньше запускался и без cgroups! Правда, сразу же падал ... но зато запускался! Хоть и падал.
https://bugs.freedesktop.org/show_bug.cgi?id=74589
> systemd segfaults if no cgroups are available
> it dies due to a NULL pointer exception in unit_default_cgroup_path()
И да, для Свидетелей: народу не нравится не Cам Великий Рыжий Пророк, а его отношение к делу:
> Richard Wagner:
> On systems without cgroups (like linux containers) systemd takes the following branch in
> manager_setup_cgroup()
> But later it dies due to a NULL pointer exception in unit_default_cgroup_path().
...
Великий Рыжий Пророк:
> To make this work we'd need a patch, as nobody of us tests this.
> Lennart Poettering 2014-04-04 14:56:43 UTC
> Well, cgroups-less kernels are explicitly not supported by systemd.
Аватара Великого Ананима Который Не Забывает И Не Прощает:
>> To make this work we'd need a patch, as nobody of us tests this.
> Yes, it's clear you don't test for NULL pointers before deferencing.
> Nobody else should need to provide a patch to fix the bug you created.
> If you can't figure out how to check for NULL pointers, STOP WRITING CODE IMMEDIATELY!
> You should never EVER be deferencing any pointer without first sanity checking its value.
> NO EXCEPTIONS!
> P.S. Please go die in a fire.