I made a service in ubuntu that was running a bash file which in turn called
node.js file to run my api stack.Now when i decided to delete the service I
got following commands and those worked for me.My service name was
nodeapp.service.
Commands:
systemctl stop nodeapp.service
systemctl disable nodeapp.service
sudo rm -rf /etc/systemd/system/nodeapp.service
# and symlinks that might be related
sudo rm -rf /etc/systemd/system/nodeapp.service
sudo rm -rf /usr/lib/systemd/system/nodeapp.service
# and symlinks that might be related
sudo rm -rf /usr/lib/systemd/system/nodeapp.service
systemctl daemon-reload
systemctl reset-failed
Change the name of service as per your service name.
No comments:
Post a Comment