[systemd-devel] from dbus , how do i find if app went down
Pradeepa Kumar
cdpradeepa at gmail.com
Sun Jul 5 21:33:32 PDT 2015
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 <lennart at poettering.net>
wrote:
> On Fri, 03.07.15 16:46, Pradeepa Kumar (cdpradeepa at gmail.com) wrote:
>
> > When you say 'Check the "state" instead '
> > Did you mean ActiveState ?
>
> Yes!
>
> Sorry for the confusion!
>
> Lennart
>
> --
> Lennart Poettering, Red Hat
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150706/543593c3/attachment.html>
More information about the systemd-devel
mailing list