life cycle management for the process
Havoc Pennington
hp at redhat.com
Tue Mar 27 21:41:22 PDT 2007
Shilpa Sheoran wrote:
> All,
> The DBUS Tutorials mention that dbus provides process life cycle
> management.
> Is there any documentation on it or any sample code/examples available?
>
>
What that means is very simple:
- the dbus daemon is guaranteed to exist for the life of the session
and not longer, so your app can also exist for the life of the session
and not longer by simply exiting when it disconnects from the daemon
(which libdbus does by default unless you say otherwise)
- you can track the lifecycle of any other app on the session bus by
listening for NameOwnerChanged signals
- other apps can be autostarted by name if they have installed a
.service file
Havoc
More information about the dbus
mailing list