1LPD(8) System Manager's Manual LPD(8)
2
3
4
6 lpd - line printer daemon
7
9 /usr/sbin/lpd [ -l ] [ port # ]
10
12 Lpd is the line printer daemon (spool area handler) and is normally
13 invoked at boot time from the rc(8) file. It makes a single pass
14 through the printcap(5) file to find out about the existing printers
15 and prints any files left after a crash. It then uses the system calls
16 listen(2) and accept(2) to receive requests to print files in the
17 queue, transfer files to the spooling area, display the queue, or
18 remove jobs from the queue. In each case, it forks a child to handle
19 the request so the parent can continue to listen for more requests.
20 The Internet port number used to rendezvous with other processes is
21 normally obtained with getservbyname(3) but can be changed with the
22 port# argument. The -l flag causes lpd to log valid requests received
23 from the network. This can be useful for debugging purposes.
24
25 Access control is provided by two means. First, All requests must come
26 from one of the machines listed in the file /etc/hosts.equiv or
27 /etc/hosts.lpd. Second, if the ``rs'' capability is specified in the
28 printcap entry for the printer being accessed, lpr requests will only
29 be honored for those users with accounts on the machine with the
30 printer.
31
32 The file minfree in each spool directory contains the number of disk
33 blocks to leave free so that the line printer queue won't completely
34 fill the disk. The minfree file can be edited with your favorite text
35 editor.
36
37 The file lock in each spool directory is used to prevent multiple dae‐
38 mons from becoming active simultaneously, and to store information
39 about the daemon process for lpr(1), lpq(1), and lprm(1). After the
40 daemon has successfully set the lock, it scans the directory for files
41 beginning with cf. Lines in each cf file specify files to be printed
42 or non-printing actions to be performed. Each such line begins with a
43 key character to specify what to do with the remainder of the line.
44
45 J Job Name. String to be used for the job name on the burst page.
46
47 C Classification. String to be used for the classification line
48 on the burst page.
49
50 L Literal. The line contains identification info from the pass‐
51 word file and causes the banner page to be printed.
52
53 T Title. String to be used as the title for pr(1).
54
55 H Host Name. Name of the machine where lpr was invoked.
56
57 P Person. Login name of the person who invoked lpr. This is used
58 to verify ownership by lprm.
59
60 M Send mail to the specified user when the current print job com‐
61 pletes.
62
63 f Format