<div dir="ltr">Caching the unit's statet is one solution.<div>But is there any alternative ?</div><div>This seems such a basic use case , surprising why there is no easier API for this ?</div><div>On research, I see that some people use JobRemoved signal and on getting that signal and if it 'done' they check the ActiveState to figure out if unit went down.</div><div>Is this correct way?</div><div>What is JobRemoved means?</div><div>I am looking for simple and easier way to get notified about unit down.</div><div>Thanks for your reply !<br><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 3, 2015 at 4:53 PM, Lennart Poettering <span dir="ltr"><<a href="mailto:lennart@poettering.net" target="_blank">lennart@poettering.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, 03.07.15 16:46, Pradeepa Kumar (<a href="mailto:cdpradeepa@gmail.com">cdpradeepa@gmail.com</a>) wrote:<br>
<br>
> When you say 'Check the "state" instead '<br>
> Did you mean ActiveState ?<br>
<br>
</span>Yes!<br>
<br>
Sorry for the confusion!<br>
<div class="HOEnZb"><div class="h5"><br>
Lennart<br>
<br>
--<br>
Lennart Poettering, Red Hat<br>
</div></div></blockquote></div><br></div>