Comments (4)
Yes there are 2 major rust crates, dbus-rs binds to standard libdbus, and zbus implements a pure rust solution.
The crate I linked auto-generates zbus proxies from the source code to systemd's dbus interface.
I've been using zbus and zbus-systemd for my systemctl alternative sys and it is going pretty smoothly.
If you are interested in systemd's dbus interface the documentation is here, and you can use gnome d-feet to poke around on a running system. You probably will see alot of interfaces. Lots of modern linux is plumbed together with dbus, for better or worse.
from systemctl.
Actually, this might be even simpler than parsing systemctl terminal output
https://www.freedesktop.org/wiki/Software/systemd/dbus/
from systemctl.
Never-mind, this already exists https://github.com/lucab/zbus_systemd
from systemctl.
Hello @blueforesticarus
Never-mind, this already exists https://github.com/lucab/zbus_systemd
I was not aware of "dbus", that can also be a solution to the topic of this crate. We'll see, maybe it will become pointless a near future. "dbus" would probably a more stable / standard approach.
I checked it out when you open this thread, other solutions exist too like this one
from systemctl.
Related Issues (9)
- list_units function is private HOT 3
- "list_units" not working correctely HOT 4
- Package does not work on Ubuntu 18.04 HOT 7
- Does not work on Arch linux HOT 3
- list_disabled_services , list_enabled_services not working HOT 1
- parse failed
- unecessary printing when calling from_systemctl
- Service start and enable function would be good
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 systemctl.