fix to use relative socket path
This commit is contained in:
@@ -26,7 +26,7 @@ extern crate semver;
|
||||
pub mod service;
|
||||
|
||||
/// Default value for hypervisor ipc listener
|
||||
pub const HYPERVISOR_IPC_URL: &'static str = "ipc:///tmp/parity-internal-hyper-status.ipc";
|
||||
pub const HYPERVISOR_IPC_URL: &'static str = "parity-internal-hyper-status.ipc";
|
||||
|
||||
use std::sync::{Arc,RwLock};
|
||||
use service::{HypervisorService, IpcModuleId};
|
||||
@@ -43,6 +43,7 @@ pub struct Hypervisor {
|
||||
ipc_worker: RwLock<nanoipc::Worker<HypervisorService>>,
|
||||
processes: RwLock<HashMap<IpcModuleId, Child>>,
|
||||
modules: HashMap<IpcModuleId, BootArgs>,
|
||||
pub io_path: String,
|
||||
}
|
||||
|
||||
/// Boot arguments for binary
|
||||
@@ -90,6 +91,11 @@ impl Hypervisor {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn io_path(mut self, directory: &str) -> Hypervisor {
|
||||
self.io_path = directory.to_owned();
|
||||
self
|
||||
}
|
||||
|
||||
/// Starts with the specified address for the ipc listener and
|
||||
/// the specified list of modules in form of created service
|
||||
pub fn with_url(addr: &str) -> Hypervisor {
|
||||
@@ -101,6 +107,7 @@ impl Hypervisor {
|
||||
ipc_worker: RwLock::new(worker),
|
||||
processes: RwLock::new(HashMap::new()),
|
||||
modules: HashMap::new(),
|
||||
io_path: "/tmp".to_owned(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user