To kill grid engine system daemons from the command line, use one of the following commands:
% qconf -ke[j] {hostname,... | all} % qconf -ks % qconf -km |
You must have manager or operator privileges to use these commands. See Chapter 4, Managing User Access for more information about manager and operator privileges.
The qconf –ke command shuts down the execution daemons. However, it does not cancel active jobs. Jobs that finish while no sge_execd is running on a system are not reported to sge_qmaster until sge_execd is restarted. The job reports are not lost, however.
The qconf -kej command kills all currently active jobs and brings down all execution daemons.
Use a comma-separated list of the execution hosts you want to shut down, or specify all to shut down all execution hosts in the cluster.
The qconf -ks command shuts down the scheduler sge_schedd.
The qconf -km command forces the sge_qmaster process to terminate.
If you want to wait for any active jobs to finish before you run the shutdown procedure, use the qmod -dq command for each cluster queue, queue instance, or queue domain before you run the qconf sequence described earlier. For information about cluster queues, queue instances, and queue domains, see Configuring Queues.
% qmod -dq {cluster-queue | queue-instance | queue-domain} |
The qmod -dq command prevents new jobs from being scheduled to the disabled queue instances. You should then wait until no jobs are running in the queue instances before you kill the daemons.