If I install a new service then decide I don’t want that application anymore and delete it, the service is still listed in the output from systemctl
as error.
Where is this coming from and how can I remove them thoroughly?
Answer
My recipe for service obliteration (be careful with the rm
statements!)
systemctl stop [servicename]
systemctl disable [servicename]
rm /etc/systemd/system/[servicename]
rm /etc/systemd/system/[servicename] symlinks that might be related
systemctl daemon-reload
systemctl reset-failed
It is possible that the systemd service 'wraps' the old style scripts in /etc/init.d, so you may want to clean that up too, but that is not where systemd services live.
Comments
Post a Comment