qterm.8B 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. .\" Copyright (C) 1994-2018 Altair Engineering, Inc.
  2. .\" For more information, contact Altair at www.altair.com.
  3. .\"
  4. .\" This file is part of the PBS Professional ("PBS Pro") software.
  5. .\"
  6. .\" Open Source License Information:
  7. .\"
  8. .\" PBS Pro is free software. You can redistribute it and/or modify it under the
  9. .\" terms of the GNU Affero General Public License as published by the Free
  10. .\" Software Foundation, either version 3 of the License, or (at your option) any
  11. .\" later version.
  12. .\"
  13. .\" PBS Pro is distributed in the hope that it will be useful, but WITHOUT ANY
  14. .\" WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  15. .\" FOR A PARTICULAR PURPOSE.
  16. .\" See the GNU Affero General Public License for more details.
  17. .\"
  18. .\" You should have received a copy of the GNU Affero General Public License
  19. .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. .\"
  21. .\" Commercial License Information:
  22. .\"
  23. .\" For a copy of the commercial license terms and conditions,
  24. .\" go to: (http://www.pbspro.com/UserArea/agreement.html)
  25. .\" or contact the Altair Legal Department.
  26. .\"
  27. .\" Altair’s dual-license business model allows companies, individuals, and
  28. .\" organizations to create proprietary derivative works of PBS Pro and
  29. .\" distribute them - whether embedded or bundled with other software -
  30. .\" under a commercial license agreement.
  31. .\"
  32. .\" Use of Altair’s trademarks, including but not limited to "PBS™",
  33. .\" "PBS Professional®", and "PBS Pro™" and Altair’s logos is subject to Altair's
  34. .\" trademark licensing policies.
  35. .\"
  36. .TH qterm 8B "16 April 2018" Local "PBS Professional"
  37. .SH NAME
  38. .B qterm
  39. \- terminate one or both PBS servers, and optionally terminate scheduler(s) and/or MoMs
  40. .SH SYNOPSIS
  41. .B qterm
  42. [-f | -F | -i] [-m] [-s] [-t <type>] [<server>[ <server> ...]]
  43. .br
  44. .B qterm
  45. --version
  46. .SH DESCRIPTION
  47. The
  48. .B qterm
  49. command terminates a PBS batch server.
  50. Once the server is terminating, no new jobs are accepted by the
  51. server, and no jobs are allowed to begin execution. The impact on
  52. running jobs depends on the way the server is shut down.
  53. The
  54. .B qterm
  55. command does not exit until the server has completed its shutdown procedure.
  56. If the complex is configured for failover, and the primary server is
  57. shut down, the normal behavior for the secondary server is to become
  58. active. The
  59. .B qterm
  60. command provides options to manage the behavior of
  61. the secondary server; it can be shut down, forced to remain idle, or
  62. shut down in place of the primary server.
  63. .B Required Privilege
  64. .br
  65. In order to
  66. run the
  67. .B qterm
  68. command, you must have PBS Operator or Manager privilege.
  69. .SH OPTIONS
  70. .IP "(no options)" 10
  71. The
  72. .B qterm
  73. command defaults to
  74. .B qterm -t quick.
  75. .IP "-f" 10
  76. If the complex is configured for failover, shuts down both the primary and
  77. secondary servers.
  78. .br
  79. Without the
  80. .I -f
  81. option,
  82. .B qterm
  83. shuts down the the primary server and makes the secondary server active.
  84. .br
  85. The
  86. .I -f
  87. option cannot be used with the
  88. .I -i
  89. or
  90. .I -F
  91. options.
  92. .IP "-F" 10
  93. If the complex is configured for failover, shuts down only the secondary server,
  94. leaving the primary server active.
  95. .br
  96. The
  97. .I -F
  98. option cannot be used with the
  99. .I -f
  100. or
  101. .I -i
  102. options.
  103. .IP "-i" 10
  104. If the complex is configured for failover, leaves the secondary server
  105. idle when the primary server is shut down.
  106. .br
  107. The
  108. .I -i
  109. option cannot be used with the
  110. .I -f
  111. or
  112. .I -F
  113. options.
  114. .IP "-m" 10
  115. Shuts down the primary server and all MoMs
  116. .B (pbs_mom).
  117. This option does not cause jobs or subjobs to be killed.
  118. Jobs are left running subject to other options to the
  119. .B qterm
  120. command.
  121. .IP "-s" 10
  122. Shuts down the primary server and the scheduler
  123. .B (pbs_sched).
  124. .IP "-t <type>" 10
  125. The
  126. .I type
  127. specifies how the server is shut down. The
  128. .I types
  129. are the following:
  130. .RS
  131. .IP immediate
  132. Shuts down the primary server. Immediately stops all running jobs.
  133. Any running jobs that can be checkpointed are checkpointed,
  134. terminated, and requeued. Jobs that cannot be checkpointed are
  135. terminated and requeued if they are rerunnable, otherwise they are
  136. killed.
  137. If any job cannot be terminated, for example the server cannot contact
  138. the MoM of a running job, the server continues to execute and the job
  139. is listed as running. The server can be terminated by a second
  140. .B qterm -t immediate
  141. command.
  142. While terminating, the server is in the
  143. .I Terminating
  144. state.
  145. .IP delay
  146. Shuts down the primary server. The server waits to terminate until
  147. all non-checkpointable, non-rerunnable jobs are finished executing.
  148. Any running jobs that can be checkpointed are checkpointed,
  149. terminated, and requeued. Jobs that cannot be checkpointed are
  150. terminated and requeued if they are rerunnable, otherwise they are
  151. allowed to continue to run.
  152. While terminating, the server is in the
  153. .I Terminating-Delayed
  154. state.
  155. .IP quick
  156. Shuts down the primary server. Running jobs and subjobs are left running.
  157. This is the default behavior when no options are given to the
  158. .B qterm
  159. command.
  160. While terminating, the server is in the
  161. .I Terminating
  162. state.
  163. .RE
  164. .LP
  165. .IP "--version" 10
  166. The
  167. .B qterm
  168. command returns its PBS version information and exits.
  169. This option can only be used alone.
  170. .SH OPERANDS
  171. You optionally specify the list of servers to shut down using
  172. .I [<server>[ <server> ...].
  173. If you do not specify any servers, the
  174. .B qterm
  175. command shuts down the default server.
  176. .SH STANDARD ERROR
  177. The
  178. .B qterm
  179. command writes a diagnostic message to standard error for
  180. each error occurrence.
  181. .SH EXIT STATUS
  182. .IP Zero 8
  183. Upon successful processing of all operands presented to the
  184. .B qterm
  185. command.
  186. .IP "Greater than zero" 8
  187. If the
  188. .B qterm
  189. command fails to process any operand
  190. .SH SEE ALSO
  191. The
  192. .I PBS Professional Administrator's Guide,
  193. pbs_server(8B), pbs_mom(8B), pbs_sched(8B)