Compare commits
No commits in common. "7e0d22d4e0a64f71955c6e7fd9ca6c29e48f29f0" and "4d2fe5768029fde06099744e406c211fdd4b2ab4" have entirely different histories.
7e0d22d4e0
...
4d2fe57680
|
|
@ -201,6 +201,7 @@ fn once_get_remote_configuration(serv_info: &str) -> Option<Processes> {
|
|||
}
|
||||
},
|
||||
Err(_) => {
|
||||
warn!("Cannot get config from Redis Server. Empty channel");
|
||||
None
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@ use anyhow::{Result, Ok, Error};
|
|||
use clap::Parser;
|
||||
use std::path::PathBuf;
|
||||
|
||||
const SOCKET_PATH: &str = "/var/run/enode/hostagent.sock";
|
||||
|
||||
/// # Enum `MetricsPrebootParams`
|
||||
/// ## for setting up metrics mode as preboot param from command prompt
|
||||
///
|
||||
|
|
@ -188,18 +186,8 @@ pub struct PrebootParams {
|
|||
impl PrebootParams {
|
||||
pub fn validate(mut self) -> Result<Self> {
|
||||
if !self.socket_path.exists() && !self.no_hostagent {
|
||||
if self.socket_path.to_string_lossy() == SOCKET_PATH {
|
||||
self.no_hostagent = true;
|
||||
eprintln!("Warning: Socket-file wasn't found. Working without hostagent module...");
|
||||
} else {
|
||||
eprintln!("Warning: Socket-file wasn't found or Noxis can't read it. Socket-file was set to default");
|
||||
if !PathBuf::from(SOCKET_PATH).exists() {
|
||||
self.no_hostagent = true;
|
||||
eprintln!("Warning: Socket-file wasn't found. Working without hostagent module...");
|
||||
} else {
|
||||
self.socket_path = PathBuf::from(SOCKET_PATH);
|
||||
}
|
||||
}
|
||||
eprintln!("Error: Socket-file not found or Noxis can't read it. Socket-file was set to default");
|
||||
self.socket_path = PathBuf::from("/var/run/enode/hostagent.sock");
|
||||
// return Err(Error::msg("Socket-file not found or Noxis can't read it. Cannot start"));
|
||||
}
|
||||
// existing log dir
|
||||
|
|
|
|||
Loading…
Reference in New Issue