prcs logic fixed

feature/configv2
prplV 2025-04-22 11:18:14 -04:00
parent 0d68efd461
commit 28092d945a
1 changed files with 3 additions and 3 deletions

View File

@ -82,15 +82,15 @@ pub mod v2 {
ProcessState::Holding => {
info!("No negative dependecies events on {} process. Unfreezing ...", self.name);
if let Err(er) = unfreeze_process(self.name).await {
error!("Cannot unfreeze process {} due to {}", self.name, er);
error!("Cannot unfreeze process {} : {}", self.name, er);
} else {
self.state = ProcessState::Pending;
}
},
ProcessState::Stopped => {
info!("No negative dependecies events on {} process. Starting ...", self.name);
if let Err(_) = start_process(self.name, &self.obj.path).await {
error!("Cannot start process {} due to {}", self.name, "system unrecognized error");
if let Err(er) = start_process(self.name, &self.obj.path).await {
error!("Cannot start process {} : {}", self.name, er);
} else {
self.state = ProcessState::Pending;
}