mirror of
https://github.com/tldr-pages/tldr
synced 2026-08-26 14:13:36 +01:00
594 B
594 B
systemctl kill
Send a signal to one or more processes of a unit. More information: https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#kill%20PATTERN%E2%80%A6.
- Send the
SIGTERMsignal 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
SIGHUPsignal to only the main process of a unit:
systemctl kill {{[-s|--signal]}} {{[1|SIGHUP]}} --kill-whom main {{unit}}
- List all available signals:
systemctl kill {{[-s|--signal]}} help