Simple C or C++ API for controlling systemd services
问题 Goal I'd like to write C/C++ applications and provide an API for them to communicate directly with systemd -managed services. Effectively, I'd like my applications to be able to do the equivalent of systemctl start service_name@unit_number.service without using system() , popen() , or exec() calls ( hard requirement ). Question Is there a simple C/C++ API for communicating with systemd , assuming systemd version 219 (i.e. CentOS v7.4, also a hard requirement )? Work So Far I've scoured online