1 .\" Copyright (c) 1983, 1991, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
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 .\" 4. 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.
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
28 .\" @(#)lpd.8 8.3 (Berkeley) 4/19/94
29 .\" $FreeBSD: src/usr.sbin/lpr/lpd/lpd.8,v 1.14.2.13 2002/12/29 16:35:42 schweikh Exp $
30 .\" $DragonFly: src/usr.sbin/lpr/lpd/lpd.8,v 1.5 2007/05/12 21:22:10 swildner Exp $
37 .Nd line printer spooler daemon
46 is the line printer daemon (spool area handler) and is normally invoked
49 file. It makes a single pass through the
51 file to find out about the existing printers and
52 prints any files left after a crash.
53 It then uses the system calls
57 to receive requests to print files in the queue,
58 transfer files to the spooling area, display the queue,
59 or remove jobs from the queue. In each case, it forks a child to handle
60 the request so the parent can continue to listen for more requests.
65 By default, if some remote host has a connection error while trying to
66 send a print request to
70 will only send error message to that remote host.
75 to also log all of those connection errors via
80 on the Internet listening socket (see
87 to log valid requests received from the network.
89 for debugging purposes.
93 flag is a synonym for the
96 It is being deprecated, and may be removed in a
104 not to open an Internet listening socket.
107 will not accept any connections from any remote
108 hosts, although it will still accept print requests
109 from all local users.
113 daemon will only accept connections which originate
114 from a reserved-port (<1024) on the remote host.
119 to accept connections coming from any port.
120 This is can be useful when you want to accept print jobs
121 from certain implementations of lpr written for Windows.
127 Inet and inet6 (default).
129 The Internet port number used to rendezvous
130 with other processes is normally obtained with
132 but can be changed with the
137 Access control is provided by two means.
138 First, all requests must come from
139 one of the machines listed in the file
145 capability is specified in the
147 entry for the printer being accessed,
149 requests will only be honored for those users with accounts on the
150 machine with the printer.
154 in each spool directory contains the number of disk blocks to leave free
155 so that the line printer queue won't completely fill the disk.
158 file can be edited with your favorite text editor.
160 The daemon begins processing files
161 after it has successfully set the lock for exclusive
162 access (described a bit later),
163 and scans the spool directory
164 for files beginning with
168 file specify files to be printed or non-printing actions to be
169 performed. Each such line begins with a key character
170 to specify what to do with the remainder of the line.
173 Job Name. String to be used for the job name on the burst page.
175 Classification. String to be used for the classification line
178 Literal. The line contains identification info from
179 the password file and causes the banner page to be printed.
181 Title. String to be used as the title for
184 Host Name. Name of the machine where
188 Person. Login name of the person who invoked
190 This is used to verify ownership by
193 Send mail to the specified user when the current print job completes.
195 Formatted File. Name of a file to print which is already formatted.
197 Like ``f'' but passes control characters and does not make page breaks.
199 Name of a file to print using
203 Troff File. The file contains
205 output (cat phototypesetter commands).
207 Ditroff File. The file contains device independent troff
210 DVI File. The file contains
213 DVI format from Stanford.
215 Graph File. The file contains data produced by
219 The file contains data produced by
222 The file contains a raster image.
224 The file contains text data with
225 FORTRAN carriage control characters.
227 Troff Font R. Name of the font file to use instead of the default.
229 Troff Font I. Name of the font file to use instead of the default.
231 Troff Font B. Name of the font file to use instead of the default.
233 Troff Font S. Name of the font file to use instead of the default.
236 Changes the page width (in characters) used by
238 and the text filters.
240 Indent. The number of characters to indent the output by (in ASCII).
242 Unlink. Name of file to remove upon completion of printing.
244 File name. The name of the file which is being printed, or a blank
245 for the standard input (when
247 is invoked in a pipeline).
249 Locale. String to be used as the locale for
253 If a file cannot be opened, a message will be logged via
260 utility will try up to 20 times
261 to reopen a file it expects to be there, after which it will
262 skip the file to be printed.
268 to provide exclusive access to the lock file and to prevent multiple
269 daemons from becoming active simultaneously. If the daemon should be killed
270 or die unexpectedly, the lock file need not be removed.
271 The lock file is kept in a readable
274 and contains two lines.
275 The first is the process id of the daemon and the second is the control
276 file name of the current job being printed. The second line is updated to
277 reflect the current status of
284 .Bl -tag -width "/var/spool/*/minfree" -compact
286 printer description file
289 .It Pa /var/spool/*/minfree
290 minimum free space to leave
293 .It Pa /var/run/printer
294 socket for local requests
295 .It Pa /etc/hosts.equiv
296 lists machine names allowed printer access
297 .It Pa /etc/hosts.lpd
298 lists machine names allowed printer access,
299 but not under same administrative control.
313 .%T "4.2 BSD Line Printer Spooler Manual"