Caching the unit's statet is one solution.
But is there any alternative ?
This seems such a basic use case , surprising why there is no easier API
for this ?
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.
Is this correct way?
What is JobRemoved means?
I am looking for simple and easier way to get notified about unit down.
Thanks for your reply !



On Fri, Jul 3, 2015 at 4:53 PM, Lennart Poettering <lenn...@poettering.net>
wrote:

> On Fri, 03.07.15 16:46, Pradeepa Kumar (cdprade...@gmail.com) wrote:
>
> > When you say 'Check the "state" instead '
> > Did you mean ActiveState ?
>
> Yes!
>
> Sorry for the confusion!
>
> Lennart
>
> --
> Lennart Poettering, Red Hat
>
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to