Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pcs should talk with systemd via DBus to prevent unnecessary process spawning #238

Open
jnpkrn opened this issue Jan 8, 2020 · 1 comment

Comments

@jnpkrn
Copy link
Contributor

jnpkrn commented Jan 8, 2020

Systemd-affiliated project supposedly contains all that's needed
so as to communicate with systemd:

https://github.com/systemd/python-systemd

It makes little sense from technical perspective to use anything
else (systemctl is a process-separated executable form to
trigger the same DBus calls, but since it is doable in-process
with said systemd binding, the former is just an inefficient version
of the latter for the purpose of pcs).

(Note that now that pacemaker high-level API is under development,
it will come into a similar situation, eventually, just instead of DBus
calls, there will have to be a direct Python binding built around.)

@tomjelinek
Copy link
Member

I took a look at the library. It seems to me it doesn't provide means for starting and stopping daemons and querying their status currently, which is what pcs does the most regarding systemd. We will stick to running systemctl for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants