Prestart DBus services
Michael Rasmussen
mir at datanom.net
Mon Aug 1 14:43:06 PDT 2011
On Mon, 1 Aug 2011 17:14:50 -0400
David Zeuthen <zeuthen at gmail.com> wrote:
>
> You can use the dbus-send(1) command (or gdbus(1) or own custom code
> or whatever) to invoke the StartServiceByName() method, see,
>
> http://dbus.freedesktop.org/doc/dbus-specification.html#message-bus-messages
>
Thanks, dbus-send works (in my case it is a session based service)
dbus-send --session --print-reply
--dest=org.freedesktop.DBus /org/freedesktop/DBus
org.freedesktop.DBus.StartServiceByName string:org.foo.Bar uint32:0
Not so elegant though doing it from an application. But it inspired me
to design a "Ping function" which any client should call very early in
their own startup sequence to give my service time to populate in the
background.
Thanks for your reply.
--
Hilsen/Regards
Michael Rasmussen
Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20110801/d58a55b2/attachment.pgp>
More information about the dbus
mailing list