LPD(8) UNIX Programmer's Manual LPD(8) NAME lpd - line printer daemon SYNTAX /usr/lib/lpd /usr/lib/vpd DESCRIPTION _L_p_d is the line printer for the daemon. _V_p_d is the Versatec printer/plotter daemon. _L_p_d uses the directory /_u_s_r/_s_p_o_o_l/_l_p_d (or /_u_s_r/_s_p_o_o_l/_v_p_d in the case of the vpd). A file named _l_o_c_k in that directory prevents two daemons from becoming active. After the program has successfully set the lock, it forks and the main path exits, thus spawn- ing the daemon. The spool directory is scanned for files beginning with _d_f. Each such file is submitted as a job. Each line of a job file must begin with a key character to specify what to do with the remainder of the line. L specifies that the remainder of the line is to be sent as a literal. B specifies that the rest of the line is a file name. F is the same as B except a form feed is prepended to the file. U specifies that the rest of the line is a file name. After the job has been transmitted, the file is unlinked. M is followed by a user ID; after the job is sent, a mes- sage is mailed to the user via the _m_a_i_l(1) command to verify the sending of the job. Any error will cause the daemon to wait and start over. Because of this, an improperly constructed _d_f file may cause the same job to be submitted repeatedly. _L_p_d is automatically initiated by the line printer command, _l_p_r. Similarily _v_p_d is started by the command _v_p_r. To restart _l_p_d (in the case of hardware or software malfunc- tion), it is necessary to first kill the old daemon (if still alive), and remove the lock file before initiating the new daemon. This is done automatically when the system is brought up, by /_e_t_c/_r_c, in case there were any jobs left in the spooling directory when the system went down last. FILES /usr/spool/lpd spooling area for line printer daemon /usr/spool/vpd spooling area for Versetec daemon Printed 5/17/83 1 LPD(8) UNIX Programmer's Manual LPD(8) /usr/spool/lpd/lock lock file for line printer daemon /usr/spool/vpd/lock lock file for Versatec daemon /etc/passwd to get the user's name for banner /etc/group to get the user's group name /dev/lp line printer device /dev/vp0 Versetec printer/plotter device SEE ALSO lpr(1), vpr(1) Printed 5/17/83 2