TIL. I had no idea the systemd team implemented something like this already, it's great info, thank you. :)
Re:Why Fix Kubernetes and Systemd?
by customkitchen on Monday September 19, 2022 @06:11PM
(#32904811)
>They are less common than HTTP stacks.
libsystemd includes a d-bus library for exactly this reason.
https://sleeplessbeastie.eu/2021/03/03/how-to-manage-systemd...
If you want to speak the protocol without the systemctl program then you can do the same trick. Use an SSH library, connect to the dbus socket and connect to systemd. You do need a dbus library though. They are less common than HTTP stacks.