D-Bus service shutdown on inactivity

Thiago Macieira thiago at kde.org
Mon Jan 11 05:43:58 PST 2010


Em Segunda-feira 11 Janeiro 2010, às 14:17:39, Marriouss escreveu:
> Hi all,
> 
> I've wrote a D-bus service (registered from a daemon) and I would like
> it to shutdown itself when no client is connected to it. How can I do
> that? Is there a way for my service to know how many clients are
> connected to it?
> 
> * I use QT D-Bus API.
> * At this moment I shutdown the daemon on inactivity.

I don't understand the question.

Why can't you shut down your app when you know that no more clients are 
connected?

Or is your problem knowing that there are no clients connected?

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20100111/eac4cfbc/attachment.pgp 


More information about the dbus mailing list