LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

systemctl-stop

Stop systemd units

TLDR

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

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
copy
sudo dnf install systemd
copy
sudo pacman -S systemd
copy
sudo zypper install systemd
copy
brew install systemd
copy
nix profile install nixpkgs#systemd
copy

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

Copied to clipboard
Kai