--000000000000ec9bb705d84c7f2f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi,<div>In my app, I am monitoring a few services and woul= d like to do some cleanup in my app, when these=C2=A0services=C2=A0 fail in= such a way that they don't=C2=A0restart back up=C2=A0without admin act= ion.</div><div></div><div>From=C2=A0 dbus-monitor , I see that 'Result&= #39; dbus PropertiesChanged signal comes first and then 'ActiveState= 9;=C2=A0PropertiesChanged signal comes next.</div><div>I was hoping that to= use=C2=A0 =C2=A0'ActiveState' =3D "failed"=C2=A0 and "SubState= " =3D "failed" but that does not satisfy my requirement as= =C2=A0</div><div><div>when I=C2=A0 send sigkill =C2=A0i get=C2=A0"Acti= veState" and=C2=A0"SubState" as "failed" in DBus n= otification but service starts back up automatically (due to 'Restart&#= 39; &=C2=A0=C2=A0'ActiveState'settings )</div></div><div>Also w= hen app exits with non-zero code also , I get=C2=A0"ActiveState" = and=C2=A0"SubState" as "failed" in DBus notification.</= div><div>So I can not use only=C2=A0 "ActiveState" and=C2=A0"= ;SubState" values , as app restarts after these states report "fa= iled" (in which case my app should not do cleanup)</div><div>Using=C2= =A0dbus notification, how can determine that service is down and not going = to start automatically so that in my app i can do cleanup ?</div><div>Is th= ere any parameter in PropertiesChanged=C2=A0 signal that tells that app is = down and will not start back up automatically ?</div><div>I am using=C2=A0s= ystemd 243.</div><div>Thanks for your help.</div><div>Regards</div><div><br= ></div><div><br></div><div><div><br></div><div></div></div></div> --000000000000ec9bb705d84c7f2f--