Skip to content

operations+facts: server.Processes fact and server.kill operation#1583

Open
wowi42 wants to merge 2 commits intopyinfra-dev:3.xfrom
KalvadTech:server-processes-kill
Open

operations+facts: server.Processes fact and server.kill operation#1583
wowi42 wants to merge 2 commits intopyinfra-dev:3.xfrom
KalvadTech:server-processes-kill

Conversation

@wowi42
Copy link
Copy Markdown
Contributor

@wowi42 wowi42 commented Mar 5, 2026

Add process listing fact supporting Linux and BSD/macOS, and a kill operation to send signals to processes.

As discussed with Paul Hoffman on Matrix

  • Pull request is based on the default branch (3.x at this time)
  • Pull request includes tests for any new/updated operations/facts
  • Pull request includes documentation for any new/updated operations/facts
  • Tests pass (see scripts/dev-test.sh)
  • Type checking & code style passes (see scripts/dev-lint.sh)
wowi42 added 2 commits March 5, 2026 14:18
Add process listing fact supporting Linux and BSD/macOS, and a kill operation to send signals to processes.
BusyBox ps (Alpine) does not support --no-headers, -e, %cpu, %mem, or comm fields. Detect BusyBox via Which and use compatible columns (pid,user,vsz,stat,args) with cpu_percent/mem_percent defaulting to 0.0 and command extracted from args.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant