Comments (4)
Restarting dbus-broker
is already somewhat possible, as long as you make all clients reconnect somehow, either by having the client reconnect or by restarting them. (With systemd, you just do a daemon-reexec
, and then you can deal with everything else). I already do this for server upgrades, and it beats the fact that a restart of the prior dbus-daemon
made my systems unusable entirely beyond a reboot.
However, not having to do that would be amazing, of course.
from dbus-broker.
I discussed this with @thom311 at devconf as well. Nice to see it's being considered.
from dbus-broker.
Just for completeness: I can see why this is handy. At the same time, this is a non-trivial extension.
In dbus-broker, we never access outside resources. The entire daemon is self-contained and fully controlled by its launcher. This makes restarting it easy (if you solve the serialization/deserialization part, which itself is a bigger effort). However, the outer part troubles me. The launcher we provide mirrors the behavior of dbus-daemon regarding configuration parsing, reloading, activation, etc. There might be circular dependencies there (like dbus-broker depending on systemd, and vice-versa), and it is not clear how such a system can be restarted in a safe way. Sure, you can just make them restart in parallel, and it will work most of the time. However, this is something I don't like being involved in. Distribution right now don't provide safe live-updated, and I feel a bit hesitant joining this unsafe area.
Long story short: Making dbus-broker restartable should be easy (in the sense of possible problems), but rather a bigger effort. Regarding the launcher, it is easy and less effort, but we would really have to mark this as "you're on your on there", if you restart across non-bugfix releases. While it will be consistent in itself, we can never guarantee consistency with outside dependencies, unless they provide a consistent restart-behavior.
from dbus-broker.
An old discussion was here: https://wiki.ubuntu.com/DbusRestart
Occasionally this issue still pops up. Usually it pops up on the client-side, like "why does NetworkManager not reconnect to the bus when restarting dbus.service
". But I still think that it doesn't scale that every client handles restart of the broker. IMO the only solution can be that the broker handles it transparently.
As @dvdhrm says, probably the broker could support it, if somebody implements it. But there also seems not enough necessity/interest for anybody to step up (which is fine)...
from dbus-broker.
Related Issues (20)
- Can't locate expat HOT 2
- Wiki page minor correction HOT 2
- RFE: add destination/unit name to error messages HOT 5
- Error when enabling the service on Arch Linux HOT 4
- Invalid file in 'includedir' causes entire launch to fail HOT 4
- Integer overflow due to u64->u32 when passing the "limits" around (most likely happen to `max_bytes`) HOT 3
- dbus-broker-units has made Light Display Manager (lightdm) unable to start HOT 19
- With dbus-broker-units, the KDE (plasma) can't be loaded HOT 5
- Several Errors from dbus-broker-launch on linux boot | org.kde.dolphin.FileManager1.service' is not named after the D-Bus name 'org.freedesktop.FileManager1' HOT 6
- Running dbus-broker-launch without systemd (the reprise) HOT 6
- The default position of critical infrastructure cannot be complete system failure HOT 6
- Do not hard fail on a failed config parse in a manner which prevents the user from fixing it HOT 2
- How to replace dbus-broker as session bus? HOT 4
- dbus-broker uses an extremely high amount of memory HOT 2
- Error starting dbus-broker-launch HOT 5
- What are the field definitions for org.freedesktop.DBus.Debug.Status.UserAccounting HOT 2
- Test 48/49 libcstdaux-1failure with Clang HOT 1
- There seems to be a memory leak in policy_import
- RFE: improve dbus-broker's logging HOT 5
- Be able to set the servicedirs precedence HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbus-broker.