To completely disable a service in systemd (so it doesn't start automatically and can't be started by dependencies), follow these steps:
This stops it from starting automatically on boot:
sudo systemctl disable <service-name>This makes it impossible to start the service manually or automatically (even by another service):
sudo systemctl mask <service-name>This creates a symlink from the service file to
/dev/null, effectively making it unusable.
- To unmask:
sudo systemctl unmask <service-name>- To enable again:
sudo systemctl enable <service-name>