Use a DoNotStart file
If you are performing various maintenance or configuration procedures under the direction of technical support, you might be asked to use a DoNotStart file to prevent services from starting when Server Manager is started or restarted.
You should add or remove a DoNotStart file only if technical support has directed you to do so. |
To prevent a service from starting, place a DoNotStart file in the directory of the service you want to prevent from starting. At start-up, Server Manager looks for the DoNotStart file. If the file is present, the service (and any services dependent on it) is prevented from starting. When the DoNotStart file is removed, the previously stopped service will start on the next start or restart of Server Manager. Services aren't automatically started when the DoNotStart file is removed.
The most efficient way to prevent all services from restarting is to prevent the NTP service from starting. All services are dependent on the NTP service and can't run if the NTP service is not running.
Add DoNotStart file for service
You can prevent an individual service from starting by adding a DoNotStart file to that service's directory on a grid node.
You have the Passwords.txt
file.
-
Log in to the grid node:
-
Enter the following command:
ssh admin@grid_node_IP
-
Enter the password listed in the
Passwords.txt
file. -
Enter the following command to switch to root:
su -
-
Enter the password listed in the
Passwords.txt
file.
When you are logged in as root, the prompt changes from
$
to#
. -
-
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.
-
Log out of the command shell:
exit
Remove DoNotStart file for service
When you remove a DoNotStart file that is preventing a service from starting, you must start that service.
You have the Passwords.txt
file.
-
Log in to the grid node:
-
Enter the following command:
ssh admin@grid_node_IP
-
Enter the password listed in the
Passwords.txt
file. -
Enter the following command to switch to root:
su -
-
Enter the password listed in the
Passwords.txt
file.
When you are logged in as root, the prompt changes from
$
to#
. -
-
Remove the DoNotStart file from the service directory:
rm /etc/sv/service/DoNotStart
where
service
is the name of the service. For example,rm /etc/sv/ldr/DoNotStart
-
Start the service:
service servicename start
-
Log out of the command shell:
exit