mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
219afbc3c5
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Lena Pastwa <126529524+acuteenvy@users.noreply.github.com>
579 B
579 B
systemctl kill
Send a signal to one or more processes of a unit. More information: https://www.freedesktop.org/software/systemd/man/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]}} SIGHUP --kill-whom main {{unit}}
- List all available signals:
systemctl kill {{[-s|--signal]}} help