systemd: make unit_status read-only (GetUnit only, never LoadUnit)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YShymaPrXmc3KYRUg2HMSs
This commit is contained in:
1 parent
85af4659f1
commit
74802efd0e
7 files changed
+15
-12
No files matched your search
+1
-1
@@ -205,7 +205,7 @@ impl TrackerService {
|
||||
}
|
||||
|
||||
#[tool(
|
||||
description = "Detailed status of one systemd unit: states, unit file path, enter/exit times and, for services, main_pid, exec_main_status, n_restarts (automatic restarts) and result (`success`, `exit-code`, `signal`, `timeout`). Unknown unit is an error."
|
||||
description = "Detailed status of one systemd unit: states, unit file path, enter/exit times and, for services, main_pid, exec_main_status, n_restarts (automatic restarts) and result (`success`, `exit-code`, `signal`, `timeout`). Read-only: only units systemd currently has loaded are visible; an unloaded or unknown unit is a not-found error."
|
||||
)]
|
||||
async fn get_systemd_unit(
|
||||
&self,
|
||||
|
||||
Reference in new issue
Block a user