Simple C or C++ API for controlling systemd services

前端 未结 1 1011
萌比男神i
萌比男神i 2021-01-17 09:34

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

1条回答
  •  隐瞒了意图╮
    2021-01-17 10:05

    As you already figured out, you should only interact with systemd using a dbus library, there is no other supported way to do so. Even if you lifted the requirement of no execution of binaries, it will remain frowned upon, as the *ctl tools are command line user interfaces not intended or designed to be called from other programs.

    0 讨论(0)
提交回复
热议问题