Uninstalling a LifeCycle Manager Service on Linux

Use this procedure to uninstall a LifeCycle Manager Service on Linux.

Note: 

Ensure that all products and middleware are uninstalled or unregistered from the LifeCycle Manager Service before you uninstall the Service.

Uninstall a LifeCycle Manager Service on Linux

  1. In the LifeCycle Manager Client Hosts tab, right-click the server where the LifeCycle Manager Service is installed.
  2. Select Host > Unregister Host.
  3. Click OK or View Log.
  4. Log on to the Linux server as root.
  5. Navigate to LCM_service_installation_path/script.
  6. Run the command ./uninstallLcmService.sh.
  7. Run the command cat /etc/lcm/lcmservice to verify that the service is removed. The LifeCycle Manager Service should not appear in the list.
  8. Open the file /etc/lcm/ports and verify that ports reserved for the LifeCycle Manager Service are removed from the file.
  9. If only one service is installed:
    1. Stop the services:

      systemctl stop lcm-services

      systemctl stop lcm-grids

    2. Disable the services:

      systemctl disable lcm-services

      systemctl disable lcm-grids

    3. Remove these files:

      /usr/lib/systemd/scripts/lcm-services

      /usr/lib/systemd/system/lcm-services.service

      /usr/lib/systemd/scripts/lcm-grids

      /usr/lib/systemd/system/lcm-grids.service

      /etc/lcm/lcmservice

      /etc/lcm/grids

      /etc/lcm/ports

    4. Run this command to reload the system process:

      systemctl daemon-reload

    5. In the /home/lcm/.bashrc file, there are two generated functions called startlcm and stoplcm.

      Remove everything

      from: #Start of Generated functions for LifeCycleManager (LCM)

      until: #End of Generated functions for LifeCycleManager (LCM).