Comments (5)
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.
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.
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.
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.
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)
- Rename login1.Conn to login1.Client or similar
- Bump required Go version to 1.13 HOT 2
- journal_test.go:218: Error reading to journal: EOF
- sdjournal: JournalReader.Follow is not thread-safe
- bug(dbus): New[User|System]ConnectionContext doesn't respect incoming context.Context HOT 4
- Why is this error "dbus: connection closed by user"
- Invalid ExecStart command created using PropExecStart
- Module for reading service credentials HOT 1
- Writing `UNIT` to journal HOT 1
- Socket activation logic lacks error checking
- Different test failure results when build and tested on 1)ppc64le arch with rhel image and 2)ppc64le arch without image HOT 1
- sdjournal: please add support for journal namespaces HOT 2
- No asynchronous response when service is stopped HOT 3
- "Process org.freedesktop.systemd1 exited with status 1" when using GetUnitPropertiesContext HOT 1
- Is it possible to interact with systemd system units as non-root user? (Authentication?)
- Fail sdjournal on armhf architecture
- StartUnitContext did not respect context in matter of the jobComplete signal
- Cannot Start or Stop Units anymore, when nothing reads from the job completion channel
- help: Cannot set property ExecStopPost, or unknown property. HOT 1
- dbus properties are missing the `Environment` key.
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 go-systemd.