Uninstalling the server service running on systemd
You can uninstall the server service running as a systemd when the server service is no longer required.
Before you begin
- 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.
About this task
To uninstall the server service, you must stop the server, disable the automatic startup setting, and remove the associated service unit file.
Procedure
- 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