2025-12-16 10:20:31 -07:00
|
|
|
# systemctl kill
|
|
|
|
|
|
|
|
|
|
> Send a signal to one or more processes of a unit.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#kill%20PATTERN%E2%80%A6>.
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Send the `SIGTERM` signal to a unit to terminate it:
|
|
|
|
|
|
|
|
|
|
`systemctl kill {{unit}}`
|
|
|
|
|
|
|
|
|
|
- Send a specific signal to a unit:
|
|
|
|
|
|
|
|
|
|
`systemctl kill {{[-s|--signal]}} {{signal_number|signal_name}} {{unit}}`
|
|
|
|
|
|
|
|
|
|
- Send a `SIGHUP` signal to only the main process of a unit:
|
|
|
|
|
|
|
|
|
|
`systemctl kill {{[-s|--signal]}} SIGHUP --kill-whom main {{unit}}`
|
|
|
|
|
|
|
|
|
|
- List all available signals:
|
|
|
|
|
|
|
|
|
|
`systemctl kill {{[-s|--signal]}} help`
|