[Next] [Previous] [Up] [Top] [Contents]

25.1 SunOS 4.1.X

25.1.3 Line Printer Daemon, lpd

The line printer daemon, lpd, is started up in /etc/rc and creates a lock file, /var/spool/lpd.lock, to prevent two copies of the daemon from running simultaneously.

The relevant lines in /etc/rc will be similar to:

if [ -f /usr/lib/lpd ]; then

rm -f /dev/printer /var/spool/lpd.lock

/usr/lib/lpd; (echo -n ' printer') >/dev/console


lpd reads the /etc/printcap file to learn about existing printers and accepts print requests from users.

Unix System Administration - 8 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]