You can uninstall the server service running as a systemd when the server service is
no longer required.
You must have completed the following tasks:
- Ensured that you have the necessary permissions to uninstall the server.
- Stopped the active deployments or tasks that are currently running on the
server.
- Verify the server is installed as a systemd service.
- You must be a root user.
To uninstall the server service, you must stop the server,
disable the automatic startup setting, and remove the associated service unit
file.
-
Log in to the server host machine.
-
Stop the service by using the following command:
sudo systemctl stop devops-deploy-server
-
Disable the automatic startup setting of the server by using the following
command:
sudo systemctl disable devops-deploy-server
-
Remove the service unit file by using the following command:
sudo rm /etc/systemd/system/devops-deploy-server.service
-
Reload the systemd configuration to check server status by using the following
command:
sudo systemctl daemon-reload
You have uninstalled the server running as a systemd
service.