In this post, we will learn to remove service from systemd
.
- Stop the service
sudo systemctl stop <service-name>
- Disable the service
sudo systemctl disable <service-nama>
- Remove service file
Most of the cases your service file will be inside
directory/etc/systemd/system/
sudo rm /etc/systemd/system/<service-name>
- Reload the daemon
sudo systemctl daemon-reload
By following the steps it will remove the service from systemd
.
Leave a Reply