systemctl-disable
TLDR
Disable a service from running on boot
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
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
systemctl(1), systemctl-enable(1), systemctl-mask(1)
