qsig.1B 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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 qsig 1B "26 December 2017" Local "PBS Professional"
  37. .SH NAME
  38. .B qsig
  39. \- signal a PBS batch job
  40. .SH SYNOPSIS
  41. .B qsig
  42. [-s <signal>] <job ID> [<job ID> ...]
  43. .br
  44. .B qsig
  45. --version
  46. .SH DESCRIPTION
  47. The
  48. .B qsig
  49. command sends a signal to all the processes of the specified jobs.
  50. The
  51. .B qsig
  52. command sends a
  53. .I Signal Job
  54. batch request to the server which owns the job.
  55. The
  56. .B qsig
  57. command can be used for jobs, job arrays, subjobs, and ranges of subjobs.
  58. If it is used on a range of subjobs, the running subjobs in the range
  59. are signaled.
  60. Not all signal names are recognized by
  61. .B qsig
  62. ; if using a signal name does not work, try issuing the signal number instead.
  63. .B Using admin-suspend and admin-resume
  64. .br
  65. If you have a vnode requiring maintenance while remaining powered up,
  66. where you do not want jobs running during the maintenance, you can use
  67. the special signals
  68. .I admin-suspend
  69. and
  70. .I admin-resume
  71. to suspend and resume the jobs on the vnode. When you use
  72. .I admin-suspend
  73. on a vnode's
  74. job(s), the vnode goes into the
  75. .I maintenance
  76. state, and its scheduler does not schedule jobs on it. You must separately
  77. .I admin-suspend
  78. each job on the vnode. When its last
  79. .I admin-suspended
  80. job is admin-resumed, a vnode leaves the
  81. .I maintenance
  82. state.
  83. .B Restrictions
  84. .br
  85. The request to signal a job is rejected if:
  86. .IP -
  87. The user is not authorized to signal the job
  88. .IP -
  89. The job is not in the
  90. .I running
  91. or
  92. .I suspended
  93. state
  94. .IP -
  95. The requested signal is not supported by the system upon which the
  96. job is executing
  97. .IP -
  98. The job is in the process of provisioning
  99. .IP -
  100. You attempt to use
  101. .I admin-resume
  102. on a job that was
  103. .I suspend
  104. ed
  105. .IP -
  106. You attempt to use
  107. .I resume
  108. on a job that was
  109. .I admin-suspend
  110. ed
  111. .LP
  112. .B Required Privilege
  113. .br
  114. Manager or Operator privilege is required to use the
  115. .I admin-suspend, admin-resume, suspend,
  116. or
  117. .I resume
  118. signals. Unprivileged users can use other signals.
  119. .SH OPTIONS
  120. .IP "-s" 8
  121. PBS sends SIGTERM to the job.
  122. .IP "-s <signal>" 8
  123. PBS sends signal
  124. .I signal
  125. to the job.
  126. .IP "--version" 8
  127. The
  128. .B qsig
  129. command returns its PBS version information and exits.
  130. This option can only be used alone.
  131. .SH SIGNALS
  132. You can send standard signals to a job, or the special signals described below.
  133. The
  134. .I signal
  135. argument can be in any of the following formats:
  136. .RS 4
  137. A signal name, e.g.
  138. .I SIGKILL
  139. The signal name without the
  140. .I SIG
  141. prefix, e.g.
  142. .I KILL
  143. An unsigned signal number, e.g.
  144. .I 9
  145. .RE
  146. The signal name
  147. .I SIGNULL
  148. is allowed; in this case the server sends the signal 0 to the job, which
  149. has no effect.
  150. .B Special Signals
  151. .br
  152. The following special signals are all lower-case, and have no
  153. associated signal number:
  154. .IP "admin-suspend"
  155. Suspends a job and puts its vnodes into the
  156. .I maintenance
  157. state. The job is put into the
  158. .I S
  159. state and its processes are suspended.
  160. When suspended, a job is not executing and is not charged for
  161. walltime.
  162. .br
  163. Syntax:
  164. .I qsig -s admin-suspend <job ID>
  165. .IP "admin-resume"
  166. Resumes a job that was suspended using the
  167. .I admin-suspend
  168. signal, without waiting for its scheduler. Cannot be used on jobs that were suspended with
  169. .I suspend
  170. signal.
  171. .br
  172. Syntax:
  173. .I qsig -s admin-resume <job ID>
  174. .IP "suspend"
  175. Suspends specified job(s). Job goes into
  176. .I suspended (S)
  177. state. When suspended, a job is not
  178. executing and is not charged for walltime.
  179. .IP "resume"
  180. Marks specified job(s) for resumption by a
  181. scheduler when there are sufficient resources. If you use
  182. .B qsig -s resume
  183. on a job that was suspended using
  184. .B qsig -s suspend
  185. , the job is resumed when there are sufficient resources. Cannot
  186. be used on jobs that were suspended with
  187. .I admin_suspend
  188. signal.
  189. .SH OPERANDS
  190. The
  191. .B qsig
  192. command accepts one or more
  193. .I job ID
  194. operands. For a job, this has the form:
  195. .RS 4
  196. .I <sequence number>[.<server name>][@<server name>]
  197. .RE
  198. For a job array,
  199. .I job ID
  200. takes the form:
  201. .RS 4
  202. .I <sequence number>[][.<server name>][@<server name>]
  203. .RE
  204. Note that some shells require that you enclose a job array identifier in
  205. double quotes.
  206. .SH STANDARD ERROR
  207. The
  208. .B qsig
  209. command writes a diagnostic messages to standard error for
  210. each error occurrence.
  211. .SH EXIT STATUS
  212. .IP Zero 8
  213. Upon successful processing of all the operands presented to the
  214. .B qsig
  215. command
  216. .IP "Greater than zero" 8
  217. If the
  218. .B qsig
  219. command fails to process any operand
  220. .SH SEE ALSO
  221. The
  222. .I PBS Professional User's Guide,
  223. the
  224. .I PBS Professional Administrator's Guide,
  225. .br
  226. qsub(1B), pbs_sigjob(3B),
  227. pbs_resources(7B)