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
40 .Nd line printer spooler daemon
49 is the line printer daemon (spool area handler) and is normally invoked
53 It makes a single pass through the
55 file to find out about the existing printers and
56 prints any files left after a crash.
57 It then uses the system calls
61 to receive requests to print files in the queue,
62 transfer files to the spooling area, display the queue,
63 or remove jobs from the queue.
64 In each case, it forks a child to handle
65 the request so the parent can continue to listen for more requests.
70 By default, if some remote host has a connection error while trying to
71 send a print request to
75 will only send error message to that remote host.
80 to also log all of those connection errors via
85 on the Internet listening socket (see
92 to log valid requests received from the network.
94 for debugging purposes.
98 flag is a synonym for the
101 It is being deprecated, and may be removed in a
109 not to open an Internet listening socket.
112 will not accept any connections from any remote
113 hosts, although it will still accept print requests
114 from all local users.
118 daemon will only accept connections which originate
119 from a reserved-port (<1024) on the remote host.
124 to accept connections coming from any port.
125 This is can be useful when you want to accept print jobs
126 from certain implementations of lpr written for Windows.
132 Inet and inet6 (default).
134 The Internet port number used to rendezvous
135 with other processes is normally obtained with
137 but can be changed with the
142 Access control is provided by two means.
143 First, all requests must come from
144 one of the machines listed in the file
150 capability is specified in the
152 entry for the printer being accessed,
154 requests will only be honored for those users with accounts on the
155 machine with the printer.
159 in each spool directory contains the number of disk blocks to leave free
160 so that the line printer queue will not completely fill the disk.
163 file can be edited with your favorite text editor.
165 The daemon begins processing files
166 after it has successfully set the lock for exclusive
167 access (described a bit later),
168 and scans the spool directory
169 for files beginning with
173 file specify files to be printed or non-printing actions to be
175 Each such line begins with a key character
176 to specify what to do with the remainder of the line.
180 String to be used for the job name on the burst page.
183 String to be used for the classification line
187 The line contains identification info from
188 the password file and causes the banner page to be printed.
191 String to be used as the title for
195 Name of the machine where
200 Login name of the person who invoked
202 This is used to verify ownership by
205 Send mail to the specified user when the current print job completes.
208 Name of a file to print which is already formatted.
210 Like ``f'' but passes control characters and does not make page breaks.
212 Name of a file to print using
219 output (cat phototypesetter commands).
222 The file contains device independent troff
229 DVI format from Stanford.
232 The file contains data produced by
236 The file contains data produced by
239 The file contains a raster image.
241 The file contains text data with
242 FORTRAN carriage control characters.
245 Name of the font file to use instead of the default.
248 Name of the font file to use instead of the default.
251 Name of the font file to use instead of the default.
254 Name of the font file to use instead of the default.
257 Changes the page width (in characters) used by
259 and the text filters.
262 The number of characters to indent the output by (in ASCII).
265 Name of file to remove upon completion of printing.
268 The name of the file which is being printed, or a blank
269 for the standard input (when
271 is invoked in a pipeline).
274 String to be used as the locale for
278 If a file cannot be opened, a message will be logged via
285 utility will try up to 20 times
286 to reopen a file it expects to be there, after which it will
287 skip the file to be printed.
293 to provide exclusive access to the lock file and to prevent multiple
294 daemons from becoming active simultaneously.
295 If the daemon should be killed
296 or die unexpectedly, the lock file need not be removed.
297 The lock file is kept in a readable
300 and contains two lines.
301 The first is the process id of the daemon and the second is the control
302 file name of the current job being printed.
303 The second line is updated to
304 reflect the current status of
311 .Bl -tag -width "/var/spool/*/minfree" -compact
313 printer description file
316 .It Pa /var/spool/*/minfree
317 minimum free space to leave
320 .It Pa /var/run/printer
321 socket for local requests
322 .It Pa /etc/hosts.equiv
323 lists machine names allowed printer access
324 .It Pa /etc/hosts.lpd
325 lists machine names allowed printer access,
326 but not under same administrative control.
340 .%T "4.2 BSD Line Printer Spooler Manual"
345 daemon appeared in Version 6 AT&T UNIX.