I don't think someone will (re-)compile with systemd support in the core.
We should add a core api that executes callbacks on the events you need and then have a module setting them.
In this case I see the patches are minimal, so I can take care converting this PR to a use of a module with new core api callbacks. Then you can add more to it if needed in the future.