Forcing a service to terminate

Occasionally, a service will not stop after you have run the stop command (/etc/init.d/service stop). This failure to stop can be the result of an unusual software state or other unexpected condition within the system.

Before you begin

You must have the Passwords.txt file.

Steps

  1. From the service laptop, log in to the grid node:
    1. Enter the following command: ssh admin@grid_node_IP
    2. Enter the password listed in the Passwords.txt file.
    3. Enter the following command to switch to root: su -
    4. Enter the password listed in the Passwords.txt file.
    When you are logged in as root, the prompt changes from $ to #.
  2. Manually force a service to terminate: sv -w time force-stop service
    where time is the number of seconds to wait before executing the command. For example,
    sv -w30 force-stop ldr
    The system waits 30 seconds before terminating the ldr service.
  3. Log out of the command shell: exit