lucab / libsystemd-rs

A pure-Rust client library to work with systemd
https://crates.io/crates/libsystemd
Other
105 stars 19 forks source link

Services manipulation options missing #3

Closed bestouff closed 2 years ago

bestouff commented 7 years ago

Hi !

Nice lib, I like it. However for it to be usable I'm missing calls to start/stop services. I'm opening this issue to be notified when it's there.

Cheers,

    Xav
lucab commented 7 years ago

Thanks for the report! Just for reference, that's probably one of the last thing that will be implemented, as it depends on a long chain of things up to a pure-Rust asynchronous dbus client library. References:

jabedude commented 4 years ago

@lucab Check this out: https://github.com/marcelbuesing/dbus-native/. Still a work in progress, but it's something to watch!

lucab commented 4 years ago

Related status update since the initial report:

lucab commented 2 years ago

I'm closing this ticket now for two reasons. The first one is that I don't plan to directly add DBus helpers here. The DBus surface of systemd services is pretty huge, and it make sense to split all of that into its own crate. The second one is that it looks like zbus is getting mature enough to allow implementing this now. I've started an experimental crate at https://github.com/lucab/zbus_systemd and it already covers most of the API, but it is still very rough and non-ergonomic. But we can keep the discussion going there.