Service activation

Havoc Pennington hp at
Sat Oct 2 22:55:09 UTC 2004

On Fri, 2004-10-01 at 13:10 +0200, Waldo Bastian wrote:
> How does automatic service activation work exactly? If a message for an 
> unregistered service is received, the service is started if it is known, 
> correct?

Only optionally, at the moment. You can send an "activate service"
message and ask that messages to the service be queued up until it's
activated iirc.

> Will the message be queued until the service has registered itself with dbus?


> Does dbus handle messages in the meantime?

Yes, messages to other services are still handled - dbus-daemon never

> What happens if a second message for the same (still not registered) service 
> arrives?

Also queues up. A message queue is kept for the service that's pending

> Is there a way to detect that activation of the service failed?

Yeah, you should get an error reply in that case, and all the queued
messages will also get error replies.


More information about the dbus mailing list