ssh_task_kill
Send a signal to terminate a background task by its PID, with an option to forcefully kill the process if it does not exit within a given time.
Instructions
Terminate a background task by sending a signal to its PID.
If force=True and the process doesn't exit after wait_seconds, it will be forcibly killed with SIGKILL (signal 9).
Returns: Dictionary containing kill operation result
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | Process ID to terminate | |
| signal | No | Signal to send (15=TERM, 9=KILL) | |
| use_sudo | No | Use sudo for the kill operation | |
| force | No | Force kill with SIGKILL if process doesn't exit | |
| wait_seconds | No | Seconds to wait before force kill |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||