summaryrefslogtreecommitdiff
path: root/init/src/services/units.rs
diff options
context:
space:
mode:
authornamilsk <namilsk@namilsk.tech>2026-03-07 00:14:24 +0300
committernamilsk <namilsk@namilsk.tech>2026-03-07 00:14:24 +0300
commit3b3bcf1306857e0607010d657a1c9cc0b846d977 (patch)
treed0b9e3f9b506dbe9f87c6fb3e7acb533ea69901d /init/src/services/units.rs
parent772093279e1dd162a47e2dfe50d9a9ae0192d750 (diff)
Autofmt, updated `TODO.md`
Diffstat (limited to 'init/src/services/units.rs')
-rw-r--r--init/src/services/units.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/init/src/services/units.rs b/init/src/services/units.rs
index 316a15e..2497668 100644
--- a/init/src/services/units.rs
+++ b/init/src/services/units.rs
@@ -10,7 +10,7 @@
// or logs in such init systems are just taking the stdout+stderr
// of service and showing its output? idk 4 now, look into how its supposed to be
-use crate::{log_success, log_warning, RUNLEVEL_STATE};
+use crate::{RUNLEVEL_STATE, log_success, log_warning};
use serde::Deserialize;
use std::{
fs::{read_dir, read_to_string},
@@ -213,11 +213,10 @@ pub fn services_mainloop() -> Result<(), Box<dyn std::error::Error + Send>> {
}
}
} else {
-
false
}
}
- Ok(None) => true,
+ Ok(None) => true,
Err(e) => {
log_warning(&format!("Failed to check status of {}: {}", exec, e));
false