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