Skip to main content

Adding a DoNotStart file for a service

Contributors

You can prevent an individual service from starting by adding a DoNotStart file to that service's directory on a grid node.

What you'll need

You must have the Passwords.txt file.

Steps
  1. 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. Add a DoNotStart file: touch /etc/sv/service/DoNotStart

    where service is the name of the service to be prevented from starting. For example,

    touch /etc/sv/ldr/DoNotStart

    A DoNotStart file is created. No file content is needed.

    When Server Manager or the grid node is restarted, Server Manager restarts, but the service does not.

  3. Log out of the command shell: exit