today-i-learnt

Disable systemd service manually

Category: sysadmin Generated on 2017-06-23 source

systemctl enable works by manipulating symlinks in /etc/systemd/system/ (for system daemons). When you enable a service, it looks at the WantedBy lines in the [Install] section, and plops symlinks in the .wantsdirectory of the specified service.

systemctl disable does the opposite.

Just remove those symlinks.