Hacker News new | ask | show | jobs
by trte9343r4 699 days ago
Compiling mininal version of systemd init and systemctl is not that hard. Static with musl libc.

In 2024 it is not worth to deal with alternative init systems.

1 comments

Systemd is sometimes very slow or unusable, compared to a very direct approach of just executing eactly what you need to initialize the system and then watching kobj events or netlink events yourself instead of using udev.

On one of my systems, systemd takes 40s vs a simple script with `mount` and other commands, which takes just ~200ms. And it also fails to reload, because system has "too little RAM".

It's more flexible, but that flexibility has a huge cost on smaller systems.