Private
Public Access
1
0

Compare commits

..

2 Commits

Author SHA1 Message Date
3ea0194c6c fix: remove duplicate comment causing cargo fmt failure
All checks were successful
CI/CD Pipeline / Code Format (push) Successful in 1s
CI/CD Pipeline / Clippy Lints (push) Successful in 38s
CI/CD Pipeline / Unit Tests (push) Successful in 1m39s
CI/CD Pipeline / Security Audit (push) Successful in 5s
CI/CD Pipeline / Build Arch Package (push) Successful in 1m57s
CI/CD Pipeline / Build Debian Package (Ubuntu 22.04) (push) Successful in 1m57s
CI/CD Pipeline / Build Debian Package (push) Successful in 2m24s
CI/CD Pipeline / Build Alpine Package (push) Successful in 3m30s
CI/CD Pipeline / Build RPM Package (push) Successful in 3m26s
2026-05-05 18:18:57 +00:00
fb3ba3f2c1 chore: bump to v0.3.10 for CI trigger
Some checks failed
CI/CD Pipeline / Code Format (push) Failing after 1s
CI/CD Pipeline / Clippy Lints (push) Successful in 37s
CI/CD Pipeline / Unit Tests (push) Successful in 49s
CI/CD Pipeline / Build Debian Package (push) Has been skipped
CI/CD Pipeline / Build Debian Package (Ubuntu 22.04) (push) Has been skipped
CI/CD Pipeline / Build RPM Package (push) Has been skipped
CI/CD Pipeline / Build Alpine Package (push) Has been skipped
CI/CD Pipeline / Build Arch Package (push) Has been skipped
CI/CD Pipeline / Security Audit (push) Successful in 4s
2026-05-05 18:11:37 +00:00
3 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "linux-patch-api" name = "linux-patch-api"
version = "0.3.9" version = "0.3.10"
edition = "2021" edition = "2021"
authors = ["Echo <echo@moon-dragon.us>"] authors = ["Echo <echo@moon-dragon.us>"]
description = "Secure remote package management API for Linux systems" description = "Secure remote package management API for Linux systems"

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
linux-patch-api (0.3.10-1) unstable; urgency=low
* Fix socket activation detection for service status healthy logic
* When service is inactive but enabled, check if .socket unit is active
-- Echo <echo@moon-dragon.us> Mon, 05 May 2026 13:10:00 -0500
linux-patch-api (0.3.9-1) unstable; urgency=low linux-patch-api (0.3.9-1) unstable; urgency=low
* Fix socket activation detection for service status healthy logic * Fix socket activation detection for service status healthy logic

View File

@ -568,7 +568,6 @@ fn get_systemd_service_status(name: &str) -> Result<Option<ServiceStatus>> {
let healthy = active_state == "active" && sub_state == "running"; let healthy = active_state == "active" && sub_state == "running";
// Check for socket activation: if service is inactive but enabled, // Check for socket activation: if service is inactive but enabled,
// check if the corresponding .socket unit is active (listening) // check if the corresponding .socket unit is active (listening)
let healthy = if !healthy && active_state == "inactive" && unit_file_state == "enabled" { let healthy = if !healthy && active_state == "inactive" && unit_file_state == "enabled" {