generated from Patagia/template-nix
Compare commits
1 commit
d9472f8e3b
...
038329f9ac
Author | SHA1 | Date | |
---|---|---|---|
038329f9ac |
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,6 @@ use internal::ipc::patagia::io_patagia_hostd;
|
|||
use internal::ipc::systemd::io_systemd_hostname::{self, VarlinkClientInterface};
|
||||
|
||||
const LISTEN_ADDRESS: &str = "unix:/tmp/patagia/io.patagia.hostd";
|
||||
const SYSTEMD_ADDRESS: &str = "unix:/run/systemd/io.systemd.Hostname";
|
||||
|
||||
struct PatagiaHostd;
|
||||
|
||||
|
@ -21,7 +20,8 @@ impl io_patagia_hostd::VarlinkInterface for PatagiaHostd {
|
|||
|
||||
fn describe(&self, call: &mut dyn io_patagia_hostd::Call_Describe) -> varlink::Result<()> {
|
||||
// Connect to systemd.Hostname
|
||||
let conn = varlink::Connection::with_address(SYSTEMD_ADDRESS).unwrap();
|
||||
let conn =
|
||||
varlink::Connection::with_address("unix:/run/systemd/io.systemd.Hostname").unwrap();
|
||||
let mut sd = io_systemd_hostname::VarlinkClient::new(conn);
|
||||
|
||||
let machine = io_patagia_hostd::Machine {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue