Bell 32V development
[unix-history] / usr / man / man8 / lpd.8
CommitLineData
6abb708f
TL
1.TH LPD 8
2.SH NAME
3lpd \- line printer daemon
4.SH SYNOPSIS
5.B /etc/lpd
6.SH DESCRIPTION
7.I Lpd
8is the daemon for the line printer.
9.I Lpd
10uses the directory
11.I /usr/lpd.
12The file
13.I lock
14in that directory is used
15to prevent two daemons from becoming active.
16After the program has successfully set the lock,
17it forks and the main path exits, thus
18spawning the daemon.
19The directory is scanned for files
20beginning with
21.B df.
22Each such file is submitted as a job.
23Each line of a job file must begin with a key
24character to specify what to do with the remainder
25of the line.
26.TP 5
27.B L
28specifies that the remainder of the line is to
29be sent as a literal.
30.TP 5
31.B B
32specifies that the rest of the line
33is a file name.
34.TP 5
35.B F
36is the same as
37.B B
38except a form feed is prepended to the file.
39.TP 5
40.B U
41specifies that the rest of the line
42is a file name.
43After the job has been transmitted,
44the file is unlinked.
45.TP 5
46.B M
47is followed by a user ID; after the job is sent,
48a message is
49mailed to the user via the
50.I mail(1)
51command
52to verify the sending of the job.
53.PP
54Any error encountered will cause the daemon to
55wait 1 minute
56and start over.
57This means that an improperly constructed
58.I df
59file may cause the same job to be submitted
60every 20 minutes.
61.PP
62.I Lpd
63is automatically initiated by the line printer command,
64.I lpr.
65.PP
66.PP
67To restart
68.I lpd
69(in the case of hardware or software malfunction),
70it is necessary to first kill the old
71daemon
72(if still alive),
73and remove the lock file
74before initiating
75the new daemon.
76This is done automatically when the system is brought up,
77by
78.I /etc/rc,
79in case there were any jobs left in the spooling directory
80when the system last went down.
81.SH FILES
82/usr/lpd/*
83spool area for line printer daemon
84.br
85/etc/passwd
86to get the user's name
87.br
88/dev/lp
89line printer device
90.sh "SEE ALSO"
91lpr(1)