systemctl-stop

Stop systemd units

TLDR

Stop a running system unit
$ systemctl stop [unit]
Stop a unit managed by the user instance
$ systemctl --user stop [unit]
Stop while suppressing certain warnings
$ systemctl stop --no-warn [unit]

SYNOPSIS

systemctl [OPTIONS...] stop PATTERN...

DESCRIPTION

systemctl stop deactivates systemd units, stopping services, unmounting filesystems, or deactivating other unit types. The command queues a stop job for the specified unit.For services, this sends a stop command (usually SIGTERM followed by SIGKILL after timeout). The unit transitions to the inactive state. Dependent units are not automatically stopped unless they cannot function without the stopped unit.

PARAMETERS

--user

Stop user service manager units instead of system units
--no-block
Do not wait for the operation to complete
--no-warn
Suppress warning about stopping running units
--job-mode=MODE
Specify how to deal with already queued jobs

INSTALL

sudo apt install systemd
sudo dnf install systemd
sudo pacman -S systemd
sudo zypper install systemd
brew install systemd
nix profile install nixpkgs#systemd

CAVEATS

Requires root privileges for system units. Stopping a unit does not disable it; it may restart on next boot if enabled. Some services may take time to stop gracefully.

SEE ALSO

systemctl(1), systemctl-start(1), systemctl-restart(1)