Giter Club home page Giter Club logo

Comments (4)

blueforesticarus avatar blueforesticarus commented on July 30, 2024 1

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.

blueforesticarus avatar blueforesticarus commented on July 30, 2024

Actually, this might be even simpler than parsing systemctl terminal output

https://www.freedesktop.org/wiki/Software/systemd/dbus/

from systemctl.

blueforesticarus avatar blueforesticarus commented on July 30, 2024

Never-mind, this already exists https://github.com/lucab/zbus_systemd

from systemctl.

gwbres avatar gwbres commented on July 30, 2024

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)

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.