[ClusterLabs Developers] RA as a systemd wrapper -- the right way?
Andrei Borzenkov
arvidjaar at gmail.com
Mon Sep 26 18:34:46 UTC 2016
26.09.2016 19:39, Ken Gaillot пишет:
...
>>
>>> The main drawbacks I see are that I'm not sure you can solve the
>>> problems with polling without the dbus interface
>>
>> I still don't get why not - but that's most likely due to my
>> ignorance of the details. Any pointers gratefully received if you
>> have time.
>
> We hope to get around the "inactive" ambiguity by using DBus signalling
> to receive notifications when a start job is complete, rather than poll
> the status repeatedly. I don't know of any equivalent way to do that
> with systemctl.
>
That's exactly what systemctl does - it calls StartUnit and then waits
for job that was queued. Default invocation mode is synchronous, so when
systemctl returns, job has finished. Bus systemctl does not return
detail error code to indicate why job has failed (if it has failed).
More information about the Developers
mailing list