LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

systemctl-disable

Disable unit auto-start at boot

TLDR

Disable a service from running on boot
$ systemctl disable [unit]
copy
Disable a service from running on boot and stop it immediately
$ systemctl disable --now [unit]
copy
Disable a user service from running on login
$ systemctl --user disable [unit]
copy
Disable multiple units at once
$ systemctl disable [unit1] [unit2]
copy
Disable a unit temporarily until next reboot
$ systemctl disable --runtime [unit]
copy

SYNOPSIS

systemctl [OPTIONS...] disable UNIT...

DESCRIPTION

systemctl disable removes the symbolic links that cause units to start automatically at boot or login. This prevents the unit from starting in the future but does not stop a currently running instance unless --now is used.The command reverses the effect of systemctl enable by removing symlinks from target.wants directories. The unit file itself is not modified or deleted.

PARAMETERS

--now

Also stop the unit after disabling
--user
Disable user service manager units instead of system units
--no-reload
Do not reload systemd configuration after disabling
--runtime
Disable temporarily until next reboot only.
--force
When disabling, remove symlinks even if the unit file does not exist.
--global
Disable for all users (with --user-mode units).

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. Disabling does not stop currently running units; use --now or systemctl stop. Some units are started by other means (socket activation, path triggers) and may need additional steps to fully disable.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid