<div dir="ltr"><div><div><div>Hello, <br><br></div>I'm trying to make a small Python script which send an email when a <b>Type=oneshot </b>service ends (either in success or in failure). <br><br></div>To do that, I'm using the dbus binding for Python, and connecting to the <b>PropertiesChanged</b> signal on the unit I'm monitoring. <br><br></div><div>It works great when the process fails (the signal is triggered and I see <b>ActiveState</b> and <b>SubState</b> refleting the failure) but not when the service end successully because not <b>PropertiesChanged</b> signal is triggered. <br><br></div><div>All I see is an <b>UnitRemoved</b> signal triggered by the manager interface... Is that normal? <br><br></div><div>Do you guys have an idea of what I'm missing here?<br><br></div>Thanks!<br>--<br><div><div class="gmail_signature"><div dir="ltr"><div>Adrien BESNARD</div></div></div></div>
</div>