by vacri · 12y ago · 0 comments
Er, no. A major feature of systemd is that it is declarative. You have hooks for running custom commands, but a unit file is declarative and easy to parse.
If you want to acquire more intelligence about an init script, you have to resort to disgusting hacks like parsing comments in order to get a dependency system working. And socket-based activation? Sysvinit is a dead end. It's the counter to "keep it simple, stupid": when you fail to capture enough information in your "simple" model, you are going to end up with more issues than if you had created a slightly more complex system.
Sysv-init does not know what to do with those processes other than reap zombies.
Now you have a system full of unmonitored processes, just as without systemd, and no standardized way of restarting the services.
This is why systemd needs to run parts of its logic in pid 1 to be most compelling.
You can launch systemd without letting it be pid 1, but you lose functionality it can't provided outside it.