Code Monkey home page Code Monkey logo

Comments (5)

lucab avatar lucab commented on September 13, 2024

Assigning to @squeed for the initial investigation. This may help removing a dbus requirement from some tools expected to run in minimal environments, like runc.

from go-systemd.

squeed avatar squeed commented on September 13, 2024

This is already supported, but needs to be explicitly requested. If we like, we could change the logic of New() to reflect systemd's logic: connect to the private bus if uid == 0.

from go-systemd.

jonboulle avatar jonboulle commented on September 13, 2024

What guarantee do we have that it's 1:1 with dbus? I'm wary of this because of the discussion in systemd/systemd#3610 (comment)

from go-systemd.

squeed avatar squeed commented on September 13, 2024

We don't have that guarantee per se. However, all the current systemd tools operate this way - they try kdbus, then private socket, then public bus.
We have some important scenarios where we need to talk to systemd without dbus running, so adding this as a fallback would be really useful.

from go-systemd.

lucab avatar lucab commented on September 13, 2024

No explicit guarantee, but systemd internally is doing this kind of automatic fallback so it seems to handle all cases transparently without special-casing endpoints on different buses. I think this gave us some confidence margin that there won't be big differences.

Just to be more conservative, second iteration of #208 switched to using the p2p mode only as a fallback if the original dbus connection fails. Sounds more reasonable?

from go-systemd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.