Created
April 2, 2024 13:14
-
-
Save m0zgen/208fdbced1fa5a3cba2a4fdcd0295d8f to your computer and use it in GitHub Desktop.
remove systemd services
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reference: https://superuser.com/questions/513159/how-to-remove-systemd-services | |
systemctl stop [servicename] | |
systemctl disable [servicename] | |
rm /etc/systemd/system/[servicename] | |
rm /etc/systemd/system/[servicename] # and symlinks that might be related | |
rm /usr/lib/systemd/system/[servicename] | |
rm /usr/lib/systemd/system/[servicename] # and symlinks that might be related | |
systemctl daemon-reload | |
systemctl reset-failed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment