Systemd

This is how to stop a running service temporarily:

# systemctl stop servicename.service

This stops it from starting at boot, but does not stop a running service:

# systemctl disable servicename.service

That also prevents it from being started by anything else, such as plugging in some hardware, or by socket or bus activation

There is one way to stop a service for good without uninstalling it, and that is by linking it to /dev/null:



# ln -s /dev/null /etc/systemd/system/servicename.service
# systemctl daemon-reload

When you want it back:

delete the symlink to /dev/null and run systemctl enable servicename.service

About vicki

Welcome to the Sovereign Republic of Vickistan. I am the President here. Lucky me! No taxes or laws yet. Lucky you!
This entry was posted in Linux. Bookmark the permalink.