generated from Patagia/template-nix
Compare commits
1 commit
038329f9ac
...
d9472f8e3b
Author | SHA1 | Date | |
---|---|---|---|
d9472f8e3b |
1 changed files with 2 additions and 2 deletions
|
@ -4,6 +4,7 @@ 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;
|
||||
|
||||
|
@ -20,8 +21,7 @@ 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("unix:/run/systemd/io.systemd.Hostname").unwrap();
|
||||
let conn = varlink::Connection::with_address(SYSTEMD_ADDRESS).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