[ClusterLabs Developers] RA as a systemd wrapper -- the right way?
Ken Gaillot
kgaillot at redhat.com
Fri Sep 30 01:00:08 CEST 2016
On 09/26/2016 01:34 PM, Andrei Borzenkov wrote:
> 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).
That would make the wrapper approach more appealing. It would still have
drawbacks, but at least it would be feasible.
More information about the Developers
mailing list