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 .\" 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.
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
32 .\" @(#)lpd.8 8.3 (Berkeley) 4/19/94
33 .\" $FreeBSD: src/usr.sbin/lpr/lpd/lpd.8,v 1.14.2.13 2002/12/29 16:35:42 schweikh Exp $
40 .Nd line printer spooler daemon
49 is the line printer daemon (spool area handler) and is normally invoked
52 file. It makes a single pass through the
54 file to find out about the existing printers and
55 prints any files left after a crash.
56 It then uses the system calls
60 to receive requests to print files in the queue,
61 transfer files to the spooling area, display the queue,
62 or remove jobs from the queue. In each case, it forks a child to handle
63 the request so the parent can continue to listen for more requests.
68 By default, if some remote host has a connection error while trying to
69 send a print request to
73 will only send error message to that remote host.
78 to also log all of those connection errors via
83 on the Internet listening socket (see
90 to log valid requests received from the network.
92 for debugging purposes.
96 flag is a synonym for the
99 It is being deprecated, and may be removed in a
107 not to open an Internet listening socket.
110 will not accept any connections from any remote
111 hosts, although it will still accept print requests
112 from all local users.
116 daemon will only accept connections which originate
117 from a reserved-port (<1024) on the remote host.
122 to accept connections coming from any port.
123 This is can be useful when you want to accept print jobs
124 from certain implementations of lpr written for Windows.
130 Inet and inet6 (default).
132 The Internet port number used to rendezvous
133 with other processes is normally obtained with
135 but can be changed with the
140 Access control is provided by two means.
141 First, all requests must come from
142 one of the machines listed in the file
148 capability is specified in the
150 entry for the printer being accessed,
152 requests will only be honored for those users with accounts on the
153 machine with the printer.
157 in each spool directory contains the number of disk blocks to leave free
158 so that the line printer queue won't completely fill the disk.
161 file can be edited with your favorite text editor.
163 The daemon begins processing files
164 after it has successfully set the lock for exclusive
165 access (described a bit later),
166 and scans the spool directory
167 for files beginning with
171 file specify files to be printed or non-printing actions to be
172 performed. Each such line begins with a key character
173 to specify what to do with the remainder of the line.
176 Job Name. String to be used for the job name on the burst page.
178 Classification. String to be used for the classification line
181 Literal. The line contains identification info from
182 the password file and causes the banner page to be printed.
184 Title. String to be used as the title for
187 Host Name. Name of the machine where
191 Person. Login name of the person who invoked
193 This is used to verify ownership by
196 Send mail to the specified user when the current print job completes.
198 Formatted File. Name of a file to print which is already formatted.
200 Like ``f'' but passes control characters and does not make page breaks.
202 Name of a file to print using
206 Troff File. The file contains
208 output (cat phototypesetter commands).
210 Ditroff File. The file contains device independent troff
213 DVI File. The file contains
216 DVI format from Stanford.
218 Graph File. The file contains data produced by
222 The file contains data produced by
225 The file contains a raster image.
227 The file contains text data with
228 FORTRAN carriage control characters.
230 Troff Font R. Name of the font file to use instead of the default.
232 Troff Font I. Name of the font file to use instead of the default.
234 Troff Font B. Name of the font file to use instead of the default.
236 Troff Font S. Name of the font file to use instead of the default.
239 Changes the page width (in characters) used by
241 and the text filters.
243 Indent. The number of characters to indent the output by (in ASCII).
245 Unlink. Name of file to remove upon completion of printing.
247 File name. The name of the file which is being printed, or a blank
248 for the standard input (when
250 is invoked in a pipeline).
252 Locale. String to be used as the locale for
256 If a file cannot be opened, a message will be logged via
263 utility will try up to 20 times
264 to reopen a file it expects to be there, after which it will
265 skip the file to be printed.
271 to provide exclusive access to the lock file and to prevent multiple
272 daemons from becoming active simultaneously. If the daemon should be killed
273 or die unexpectedly, the lock file need not be removed.
274 The lock file is kept in a readable
277 and contains two lines.
278 The first is the process id of the daemon and the second is the control
279 file name of the current job being printed. The second line is updated to
280 reflect the current status of
287 .Bl -tag -width "/var/spool/*/minfree" -compact
289 printer description file
292 .It Pa /var/spool/*/minfree
293 minimum free space to leave
296 .It Pa /var/run/printer
297 socket for local requests
298 .It Pa /etc/hosts.equiv
299 lists machine names allowed printer access
300 .It Pa /etc/hosts.lpd
301 lists machine names allowed printer access,
302 but not under same administrative control.
316 .%T "4.2 BSD Line Printer Spooler Manual"
321 daemon appeared in Version 6 AT&T UNIX.