lpr and/or lpd mysteriously stopped working. I'm not sure why, as I haven't
tried printing for a couple of weeks. I upgraded to Xfree 3.3.2 today,
libc 5.4.44 a while back. Have tried kernels 2.0.34 and 2.1.108. Yes, lpd
is running, and I know about the switch from lp1 to lp0. I can cat something
to the printer, and also read back
CODE=10001
DISPLAY=PRINTER READY
I did a strace of an lpr command and got this: [abbreviated]
open("/var/spool/lpd/pencil/tfA268Aa00311", O_RDWR) = 3
read(3, "H", 1) = 1
lseek(3, 0, SEEK_SET) = 0
write(3, "H", 1) = 1
close(3) = 0
link("/var/spool/lpd/pencil/tfA268Aa00311", "/var/spool/lpd/pencil/cfA268Aa00311") = 0
unlink("/var/spool/lpd/pencil/tfA268Aa00311") = 0
socket(PF_UNIX, SOCK_STREAM, , 0) = 3
connect(3, {sun_family=AF_UNIX, sun_path="/dev/printer"}, 14) = -1 ECONNREFUSED (Connection refused)
stat("/etc/locale/C/libc.cat", 0xbfffe75c) = -1 ENOENT (No such file or directory)
stat("/usr/share/locale/C/libc.cat", 0xbfffe75c) = -1 ENOENT (No such file or directory)
stat("/usr/share/locale/libc/C", 0xbfffe75c) = -1 ENOENT (No such file or directory)
stat("/usr/share/locale/C/libc.cat", 0xbfffe75c) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/locale/C/libc.cat", 0xbfffe75c) = -1 ENOENT (No such file or directory)
fstat(1, {st_mode=S_IFREG|0644, st_size=7815, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|0x20, 4294967295, 0) = 0x40008000
close(3) = 0
write(1, "lpr: connect: Connection refused"..., 71lpr: connect: Connection refused
jobs queued, but cannot start daemon.
) = 71
_exit(0) = ?
--
*^ / \ \ | \ When replying to me, remove the NOSPAM
/ \/ \ \__| \ from my address.
/ / ^ \ \
/ \ \ Eric Potter
/ ^ ^ \ \