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