feat(power): add Sleep action_kind to host_power #122

Merged
Claude-Run merged 1 commit from feat/VA-120-host-power-sleep into main 2026-07-06 17:07:32 +02:00
Member

Add a Sleep variant to PowerAction so host_power can suspend the host in addition to reboot and shutdown. parse accepts "sleep" and "suspend"; as_str returns "sleep". Sleep maps to system suspend-to-RAM (S3), never hibernate: Linux systemctl suspend (returns Unsupported when systemctl is absent, since shutdown(8) cannot suspend), macOS pmset sleepnow, Windows rundll32.exe powrprof.dll,SetSuspendState 0,1,0.

The unknown-action_kind error path is unchanged and the missing-action_kind message now lists sleep alongside reboot and shutdown. reply_host_power already echoes requestid into responseid on every reply, so server-relayed commands stay correlatable; no change was needed there.

#VA-120

Add a Sleep variant to PowerAction so host_power can suspend the host in addition to reboot and shutdown. parse accepts "sleep" and "suspend"; as_str returns "sleep". Sleep maps to system suspend-to-RAM (S3), never hibernate: Linux systemctl suspend (returns Unsupported when systemctl is absent, since shutdown(8) cannot suspend), macOS pmset sleepnow, Windows rundll32.exe powrprof.dll,SetSuspendState 0,1,0. The unknown-action_kind error path is unchanged and the missing-action_kind message now lists sleep alongside reboot and shutdown. reply_host_power already echoes requestid into responseid on every reply, so server-relayed commands stay correlatable; no change was needed there. #VA-120
feat(power): add Sleep action_kind to host_power
All checks were successful
Check / fmt + clippy + tests (pull_request) Successful in 6m5s
Create release / Create release from merged PR (pull_request) Has been skipped
9c9bbc5fd3
Add a Sleep variant to PowerAction so host_power can suspend the host in addition to reboot and shutdown. parse accepts "sleep" and "suspend"; as_str returns "sleep". Sleep maps to system suspend-to-RAM (S3), never hibernate: Linux systemctl suspend (returns Unsupported when systemctl is absent, since shutdown(8) cannot suspend), macOS pmset sleepnow, Windows rundll32.exe powrprof.dll,SetSuspendState 0,1,0.

The unknown-action_kind error path is unchanged and the missing-action_kind message now lists sleep alongside reboot and shutdown. reply_host_power already echoes requestid into responseid on every reply, so server-relayed commands stay correlatable; no change was needed there.

#VA-120
Claude-Run deleted branch feat/VA-120-host-power-sleep 2026-07-06 17:07:33 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/vervain-agent!122
No description provided.