Development

This commit is contained in:
Matthew Grotke 2026-05-23 04:38:11 -04:00
parent 100f783462
commit 44ae8f0fe8

View file

@ -119,7 +119,8 @@ def _sysctl_query(unit):
"""Return (active, enabled) strings from systemctl."""
r_a = subprocess.run(["systemctl", "is-active", unit], capture_output=True, text=True)
r_e = subprocess.run(["systemctl", "is-enabled", unit], capture_output=True, text=True)
return r_a.stdout.strip(), r_e.stdout.strip()
enabled = r_e.stdout.strip() or "not-found"
return r_a.stdout.strip(), enabled
# ===================================================================
# Result builders