[Patch] Auto-Close dbus-daemon when unused
Thiago Macieira
thiago at kde.org
Thu Sep 24 09:13:17 PDT 2015
On Thursday 24 September 2015 11:58:21 Leon Winter wrote:
> we are running a Debian-based thin client setup with a central big machine
> and several lightweight clients. Since users run normal desktop
> applications like evince or firefox, dbus-daemons for their sessions are
> started. When they log out however, the dbus-daemons continue to linger
> around. Often only a single application during the whole session requires
> dbus. Yet after the dbus-daemon is initially launched, it sticks around.
> This all results in many dbus-daemon processes running without any use.
> Thus for our setup we would like the dbus-daemon to automatically terminate
> when it is not actually used any more. To accomplish just that, we patched
> dbus to keep track of the connected clients and auto-launched services.
> Additionally it sets up a timer. Once the timer expires, dbus checks if
> anyone actually uses it and conditionally quits.
Why is your session not over?
The daemon is killed off automatically when the session exits. Maybe the
problem is how you're starting the session in the first place.
You should use dbus-launch to launch your session:
dbus-launch --exit-with-session your-session-script
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
More information about the dbus
mailing list