Action

  • Removes all systemd-related symbolic links configured for the unit file, including those manually created.
  • Disables all units listed in the Also= section.

Example command

systemctl disable enabled.service

Options

--now

Purpose

Stop the unit immediately after the linkage to start it is removed.

Example

systemctl disable --now runningandenabled.service

--system

Purpose

Disables the unit for the system

Example

systemctl disable --system system.service

--user

Purpose

Disables the unit for the currently logged in user

Example

systemctl disable --user user.service

--runtime

Purpose

Disables the unit for the current boot session

Example

systemctl disable --runtime thisbootonly.service

--global

Purpose

Disables the unit for the for all future logins of all users.

Example

systemctl disable --global pervasive.service