[no subject]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--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&#39;t=C2=A0restart back up=C2=A0without admin act=
ion.</div><div></div><div>From=C2=A0 dbus-monitor , I see that &#39;Result&=
#39; dbus PropertiesChanged signal comes first and then &#39;ActiveState&#3=
9;=C2=A0PropertiesChanged signal comes next.</div><div>I was hoping that to=
 use=C2=A0

=C2=A0&#39;ActiveState&#39; =3D &quot;failed&quot;=C2=A0 and &quot;SubState=
&quot; =3D &quot;failed&quot; but that does not satisfy my requirement as=
=C2=A0</div><div><div>when I=C2=A0 send sigkill =C2=A0i get=C2=A0&quot;Acti=
veState&quot; and=C2=A0&quot;SubState&quot; as &quot;failed&quot; in DBus n=
otification but service starts back up automatically (due to &#39;Restart&#=
39; &amp;=C2=A0=C2=A0&#39;ActiveState&#39;settings )</div></div><div>Also w=
hen app exits with non-zero code also , I get=C2=A0&quot;ActiveState&quot; =
and=C2=A0&quot;SubState&quot; as &quot;failed&quot; in DBus notification.</=
div><div>So I can not use only=C2=A0 &quot;ActiveState&quot; and=C2=A0&quot=
;SubState&quot; values , as app restarts after these states report &quot;fa=
iled&quot; (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--



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux