Friday, January 24, 2020

Removing the service in systemd in ubuntu 18.04

First, stop the service
systemctl stop service-name
Then disable the service
systemctl disable service-name
Removing the service in systemd
rm /etc/systemd/system/service-name
rm /etc/systemd/system/service-name/[related symlinks]
Reload systemd
systemctl daemon-reload
Finally run,
systemctl reset-failed