<div dir="ltr"><div dir="ltr"><div><div>I'm working on some code that handles restarting systemd units via dbus, and I want to make sure that my logic is correct.<br><br></div>My
 goal is to restart a unit, and wait for it to be active before my 
function returns. Once I've asked the unit to restart, I am watching the
 `JobRemoved` signal for messages containing the unit name and handling 
the result accordingly. If the signal result is "done" my function 
returns, and otherwise it errors. Is this the correct way to wait for unit readiness?<div class="gmail-yj6qo"><br></div></div></div></div>