[SailfishDevel] monitor systemd unit from qml

Michael Fuchs michfu at gmx.at
Thu Jan 28 12:12:21 UTC 2016


Ok, thanks. dbus-monitor is a good idea.

I already found another solution via the api of the service, so its not 
that critical. But it would be more elegant to just use qml.

I'm already using a dbus signal to get the status of the wifi 
connection. So basically caching signals from dbus works.

Am 28.01.2016 um 12:56 schrieb Tone Kastlunger:
> OFC one option is to get your service to send a DBus signal once it's up.
> But that makes systemd irrelevant.
>
> dbus-monitor is your friend; put it to run and start the service, grep
> the output to understand what's going on (which signals are emitted in
> particular).
>
> Then once you are sure the signal is emitted, make sure you have the
> correct parameters to connect to it.
>
> This should do it.
>
> On Thu, Jan 28, 2016 at 1:09 PM, Michael Fuchs <michfu at gmx.at
> <mailto:michfu at gmx.at>> wrote:
>
>     No, didn't help either.
>
>     https://gist.github.com/fuchsmich/354af082fbc4577a4bf5
>
>     But thanks anyway.
>
>
>     Am 27.01.2016 um 22:07 schrieb Ove Kåven:
>
>         Den 27. jan. 2016 17:03, skrev Michael Fuchs:
>
>             There is a signal "PropertiesChanged" defined but it doesn't get
>             emitted, when I start or stop the service.
>
>
>         http://www.freedesktop.org/wiki/Software/systemd/dbus/
>
>         You could see whether calling "Subscribe()" enables these
>         signals for you.
>
>         _______________________________________________
>         SailfishOS.org Devel mailing list
>         To unsubscribe, please send a mail to
>         devel-unsubscribe at lists.sailfishos.org
>         <mailto:devel-unsubscribe at lists.sailfishos.org>
>
>     _______________________________________________
>     SailfishOS.org Devel mailing list
>     To unsubscribe, please send a mail to
>     devel-unsubscribe at lists.sailfishos.org
>     <mailto:devel-unsubscribe at lists.sailfishos.org>
>
>
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
>


More information about the Devel mailing list