send_signal
Send POSIX signals to a process group to manage lifecycle. Use SIGTERM for graceful shutdown, with automatic escalation to SIGKILL after 5 seconds.
Instructions
Send a POSIX signal to a process group.
SIGTERM triggers graceful shutdown: SIGTERM → wait 5s → SIGKILL. Valid signals: SIGTERM, SIGKILL, SIGINT, SIGHUP, SIGQUIT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | ||
| sig | No | SIGTERM |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |