Service activation

Havoc Pennington hp at redhat.com
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?

Yes.

> Does dbus handle messages in the meantime?

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

> 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
activation.

> 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.

Havoc




More information about the dbus mailing list