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.

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.

  1. Log in to the server host machine.
  2. Stop the service by using the following command:
    $ sudo systemctl stop devops-deploy-server
  3. Disable the automatic startup setting of the server by using the following command:
    $ sudo systemctl disable devops-deploy-server
  4. Remove the service unit file by using the following command:
    $ sudo rm /etc/systemd/system/devops-deploy-server.service
  5. 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.