Fix unit replacement for linux

This commit was merged in pull request #32.
This commit is contained in:
Laurin Brandner
2026-04-04 11:25:29 +02:00
committed by Razvan Dimescu
parent 80fcfd10ae
commit ad34fe2d9e

View File

@@ -1189,7 +1189,7 @@ fn uninstall_linux() -> Result<(), String> {
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
fn install_service_linux() -> Result<(), String> { fn install_service_linux() -> Result<(), String> {
let unit = include_str!("../numa.service"); let unit = include_str!("../numa.service");
let unit = replace_exe_path(plist)?; let unit = replace_exe_path(unit)?;
std::fs::write(SYSTEMD_UNIT, unit) std::fs::write(SYSTEMD_UNIT, unit)
.map_err(|e| format!("failed to write {}: {}", SYSTEMD_UNIT, e))?; .map_err(|e| format!("failed to write {}: {}", SYSTEMD_UNIT, e))?;