/share/doc/smm/07.lpd/6.t

https://bitbucket.org/freebsd/freebsd-head/ · Raku · 94 lines · 94 code · 0 blank · 0 comment · 8 complexity · 6f05255b4163235838fafbb58c8c46af MD5 · raw file

  1. .\" Copyright (c) 1983, 1993
  2. .\" The Regents of the University of California. All rights reserved.
  3. .\"
  4. .\" Redistribution and use in source and binary forms, with or without
  5. .\" modification, are permitted provided that the following conditions
  6. .\" are met:
  7. .\" 1. Redistributions of source code must retain the above copyright
  8. .\" notice, this list of conditions and the following disclaimer.
  9. .\" 2. Redistributions in binary form must reproduce the above copyright
  10. .\" notice, this list of conditions and the following disclaimer in the
  11. .\" documentation and/or other materials provided with the distribution.
  12. .\" 3. All advertising materials mentioning features or use of this software
  13. .\" must display the following acknowledgement:
  14. .\" This product includes software developed by the University of
  15. .\" California, Berkeley and its contributors.
  16. .\" 4. Neither the name of the University nor the names of its contributors
  17. .\" may be used to endorse or promote products derived from this software
  18. .\" without specific prior written permission.
  19. .\"
  20. .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  21. .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22. .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23. .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  24. .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  25. .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  26. .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  27. .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  28. .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  29. .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  30. .\" SUCH DAMAGE.
  31. .\"
  32. .\" @(#)6.t 8.1 (Berkeley) 6/8/93
  33. .\"
  34. .NH 1
  35. Line printer Administration
  36. .PP
  37. The
  38. .I lpc
  39. program provides local control over line printer activity.
  40. The major commands and their intended use will be described.
  41. The command format and remaining commands are described in
  42. .IR lpc (8).
  43. .LP
  44. \fBabort\fP and \fBstart\fP
  45. .IP
  46. .I Abort
  47. terminates an active spooling daemon on the local host immediately and
  48. then disables printing (preventing new daemons from being started by
  49. .IR lpr ).
  50. This is normally used to forcibly restart a hung line printer daemon
  51. (i.e., \fIlpq\fP reports that there is a daemon present but nothing is
  52. happening). It does not remove any jobs from the queue
  53. (use the \fIlprm\fP command instead).
  54. .I Start
  55. enables printing and requests \fIlpd\fP to start printing jobs.
  56. .LP
  57. \fBenable\fP and \fBdisable\fP
  58. .IP
  59. \fIEnable\fP and \fIdisable\fP allow spooling in the local queue to be
  60. turned on/off.
  61. This will allow/prevent
  62. .I lpr
  63. from putting new jobs in the spool queue. It is frequently convenient
  64. to turn spooling off while testing new line printer filters since the
  65. .I root
  66. user can still use
  67. .I lpr
  68. to put jobs in the queue but no one else can.
  69. The other main use is to prevent users from putting jobs in the queue
  70. when the printer is expected to be unavailable for a long time.
  71. .LP
  72. \fBrestart\fP
  73. .IP
  74. .I Restart
  75. allows ordinary users to restart printer daemons when
  76. .I lpq
  77. reports that there is no daemon present.
  78. .LP
  79. \fBstop\fP
  80. .IP
  81. .I Stop
  82. halts a spooling daemon after the current job completes;
  83. this also disables printing. This is a clean way to shutdown a
  84. printer to do maintenance, etc. Note that users can still enter jobs in a
  85. spool queue while a printer is
  86. .IR stopped .
  87. .LP
  88. \fBtopq\fP
  89. .IP
  90. .I Topq
  91. places jobs at the top of a printer queue. This can be used
  92. to reorder high priority jobs since
  93. .I lpr
  94. only provides first-come-first-serve ordering of jobs.