This seems to be my problem with lpd-3.8.15 not printing (lpq reports
status stalled):
ls -la /var/spool/lpd/lp/
total 22
drwx------ 2 daemon daemon 512 Sep 24 22:12 .
drwxrwxrwx 9 root other 512 Sep 24 12:25 ..
-rw------- 1 daemon daemon 1570 Sep 24 22:12 acct
-rw------- 1 daemon daemon 169 Sep 19 21:35 cfA345pf-i400.natur.cuni.cz
-rw------- 1 daemon daemon 0 Sep 24 12:24 control.lp
-rw------- 1 daemon daemon 11 Sep 19 21:35 control.pr
-rw------- 1 daemon daemon 1369 Sep 19 21:35 dfA345pf-i400.natur.cuni.cz
-rw------- 1 daemon daemon 642 Sep 19 21:36 hfA345
-rw------- 1 daemon daemon 0 Sep 24 22:02 lock.pr
-rw------- 1 daemon daemon 0 Sep 19 21:23 log
-rw------- 1 daemon daemon 5 Sep 24 22:12 lp
-rw------- 1 daemon daemon 0 Sep 19 21:23 status
-rw------- 1 daemon daemon 5234 Sep 24 22:12 status.lp
-rw------- 1 daemon daemon 3757 Sep 19 21:36 status.pr
-rw------- 1 daemon daemon 5 Sep 24 22:12 unspooler.lp
-rw------- 1 daemon daemon 6 Sep 19 21:36 unspooler.pr
There's hostname missing in the hfA345* filename.
I've filtered out some signals to make the output shorter.
Please apologize everyone who is not interrested:
$ truss -t
'!alarm,sigaction,setcontext,getcontext,sigprocmask,waitid,sysconfig,poll,time,ioctl,read'
-f -a -p 1874
1874: accept(7, 0xEFFFF7B8, 0xEFFFF794) = 11
1874: getpid() = 1874 [1]
1874: getpeername(11, 0x0002A9B0, 0xEFFFEFD4) = 0
1874: getsockname(11, 0x0002A9C0, 0xEFFFEFD4) = 0
1874: fstat(12, 0xEFFFF360) = 0
1874: open("/etc/hosts.allow", O_RDONLY) = 13
1874: fstat64(13, 0xEFFFE928) = 0
1874: open64("/etc/.name_service_door", O_RDONLY) = 14
1874: fcntl(14, F_SETFD, 0x00000001) = 0
1874: door_info(14, 0xEF62BCF8) Err#9 EBADF
-----------------^ ???
1874: close(14) = 0
1874: open("/etc/hosts", O_RDONLY) = 14
1874: fstat64(14, 0xEFFFC3D0) = 0
1874: llseek(14, 0xFFFFFFFFFFFFFFCC, SEEK_CUR) = 91
1874: close(14) = 0
1874: open64("/etc/.name_service_door", O_RDONLY) = 14
1874: fcntl(14, F_SETFD, 0x00000001) = 0
1874: door_info(14, 0xEF62BCF8) Err#9 EBADF
-----------------^ ???
1874: close(14) = 0
1874: open("/etc/hosts", O_RDONLY) = 14
1874: fstat64(14, 0xEFFFC198) = 0
1874: llseek(14, 0, SEEK_CUR) = 143
1874: close(14) = 0
1874: stat("/etc/resolv.conf", 0xEFFFBBA8) = 0
1874: so_socket(2, 1, 0, "", 1) = 14
1874: connect(14, 0xEF4717C4, 16) = 0
1874: send(14, " \1E01\0\001\0\0\0\0\0\0".., 39, 0) = 39
----------------------------------^ IP address, right?
1874: fcntl(14, F_GETFL, 0x00000000) = 2
1874: fstat64(14, 0xEFFFB8A0) = 0
1874: getsockopt(14, 65535, 8192, 0xEFFFB9A4, 0xEFFFB99C) = 0
1874: fstat64(14, 0xEFFFB8A0) = 0
1874: getsockopt(14, 65535, 8192, 0xEFFFB9A4, 0xEFFFB9A0) = 0
1874: setsockopt(14, 65535, 8192, 0xEFFFB9A4, 4) = 0
1874: fcntl(14, F_SETFL, 0x00000006) = 0
1874: recvfrom(14, " \1E8580\001\001\004\004".., 65536, 0, 0xEFFFBA90, 0xEFFFBAA0) =
205
1874: fstat64(14, 0xEFFFB8A0) = 0
1874: getsockopt(14, 65535, 8192, 0xEFFFB9A4, 0xEFFFB9A0) = 0
1874: setsockopt(14, 65535, 8192, 0xEFFFB9A4, 4) = 0
1874: fcntl(14, F_SETFL, 0x00000002) = 0
1874: close(14) = 0
1874: llseek(13, 0xFFFFFFFFFFFFFAD7, SEEK_CUR) = 54
1874: close(13) = 0
1874: so_socket(2, 2, 0, "", 1) = 13
1874: bind(13, 0xEFFFF2D8, 16) = 0
1874: connect(13, 0xEFFFF2E8, 16) Err#146 ECONNREFUSED
1874: close(13) = 0
1874: fstat(12, 0xEFFFF190) = 0
1874: getpid() = 1874 [1]
1874: putmsg(12, 0xEFFFE848, 0xEFFFE83C, 0) = 0
1874: open("/etc/.syslog_door", O_RDONLY) = 13
1874: door_info(13, 0xEFFFE780) = 0
1874: getpid() = 1874 [1]
1874: door_call(13, 0xEFFFE768) = 0
1874: close(13) = 0
1874: fork() = 1911
1911: fork() (returning as child ...) = 1874
1911: setsid() = 1911
1911: open("/dev/tty", O_RDWR) Err#6 ENXIO
1911: fcntl(0, F_DUP2FD, 0x00000000) = 0
1911: fcntl(1, F_DUP2FD, 0x00000001) = 1
1911: fcntl(2, F_DUP2FD, 0x00000002) = 2
1911: fcntl(10, F_DUP2FD, 0x00000003) = 3
1911: fcntl(11, F_DUP2FD, 0x00000004) = 4
1911: close(5) = 0
1911: close(6) = 0
1911: close(7) = 0
1911: close(8) = 0
1911: close(9) = 0
1911: close(10) = 0
1911: close(11) = 0
1911: close(12) = 0
1911: close(13) Err#9 EBADF
1911: close(14) Err#9 EBADF
1911: close(15) Err#9 EBADF
1911: close(16) Err#9 EBADF
1911: close(17) Err#9 EBADF
1911: close(18) Err#9 EBADF
1911: close(19) Err#9 EBADF
1911: close(20) Err#9 EBADF
1911: close(21) Err#9 EBADF
1911: fcntl(3, F_GETFL, 0x00000000) = 2
1911: fstat64(3, 0xEFFFF0C0) = 0
1911: fstat64(3, 0xEFFFF0C0) = 0
1911: fcntl(3, F_SETFL, 0x00000002) = 0
1911: fcntl(4, F_GETFL, 0x00000000) = 130
1911: fstat64(4, 0xEFFFED60) = 0
1911: getsockopt(4, 65535, 8192, 0xEFFFEE64, 0xEFFFEE5C) = 0
1911: fstat64(4, 0xEFFFED60) = 0
1911: getsockopt(4, 65535, 8192, 0xEFFFEE64, 0xEFFFEE60) = 0
1911: setsockopt(4, 65535, 8192, 0xEFFFEE64, 4) = 0
1911: fcntl(4, F_SETFL, 0x00000002) = 0
1911: getpeername(4, 0xEFFFEF50, 0xEFFFEF74) = 0
1911: open64("/etc/.name_service_door", O_RDONLY) = 5
1911: fcntl(5, F_SETFD, 0x00000001) = 0
1911: door_info(5, 0xEF62BCF8) Err#9 EBADF
1911: close(5) = 0
1911: open("/etc/hosts", O_RDONLY) = 5
1911: fstat64(5, 0xEFFFC8A0) = 0
1911: llseek(5, 0xFFFFFFFFFFFFFFCC, SEEK_CUR) = 91
1911: close(5) = 0
1911: chdir("/var/spool/lpd/lp") = 0
1911: open("control.pr", O_RDONLY|O_NOCTTY) = 5
1911: fstat(5, 0xEFFFE088) = 0
1911: lseek(5, 0, SEEK_SET) = 0
1911: close(5) = 0
1911: write(4, "\0", 1) = 1
1911: statvfs("/var/spool/lpd/lp", 0xEFFFE368) = 0
1911: write(4, "\0", 1) = 1
1911: stat("/var/spool/lpd/lp", 0xEFFFE3A0) = 0
1911: getpid() = 1911 [1874]
1911: lstat64("/var/spool/lpd/lp/temp00g0a4Ud", 0xEFFFDE18) Err#2 ENOENT
1874: close(11) = 0
1874: kill(1911, SIG#0) = 0
1911: open("/var/spool/lpd/lp/temp00g0a4Ud", O_RDWR|O_CREAT|O_EXCL, 0600) = 5
1911: fchmod(5, 0600) = 0
1911: stat("/var/spool/lpd/lp/temp00g0a4Ud", 0xEFFFE3A0) = 0
1911: write(5, " H p f - i 4 0 0 . n a t".., 177) = 177
1911: close(5) = 0
1911: stat("/var/spool/lpd/lp/temp00g0a4Ud", 0xEFFFE3A0) = 0
1911: open("/var/spool/lpd/lp/temp00g0a4Ud", O_RDONLY|O_NOCTTY) = 5
1911: fstat(5, 0xEFFFDEA0) = 0
1911: lseek(5, 0, SEEK_SET) = 0
1911: close(5) = 0
1911: umask(0) = 077
1911: open("hfA910", O_RDWR|O_APPEND|O_CREAT|O_NOCTTY, 0600) = 5
1911: umask(077) = 0
1911: fstat(5, 0xEFFFE398) = 0
1911: fcntl(5, F_SETLK, 0xEFFFE05C) = 0
1911: open("/var/spool/lpd/lp/temp00g0a4Ud", O_WRONLY) = 6
1911: fcntl(6, F_FREESP, 0xEFFFE164) = 0
1911: write(6, " A m m o k r e j s @ p f".., 177) = 177
1911: close(6) = 0
1911: lseek(5, 0, SEEK_SET) = 0
1911: fcntl(5, F_FREESP, 0xEFFFE384) = 0
1911: write(5, "\n A = m m o k r e j s @".., 491) = 491
1911: unlink("lpq") Err#2 ENOENT
-----------------^ ???
1911: write(4, "\0", 1) = 1
1911: statvfs("/var/spool/lpd/lp", 0xEFFFE368) = 0
1911: write(4, "\0", 1) = 1
1911: stat("/var/spool/lpd/lp", 0xEFFFE3A0) = 0
1911: getpid() = 1911 [1874]
1911: lstat64("/var/spool/lpd/lp/temp01h0a4Ud", 0xEFFFDE18) Err#2 ENOENT
1911: open("/var/spool/lpd/lp/temp01h0a4Ud", O_RDWR|O_CREAT|O_EXCL, 0600) = 6
1911: fchmod(6, 0600) = 0
1911: stat("/var/spool/lpd/lp/temp01h0a4Ud", 0xEFFFE3A0) = 0
1911: write(6, " S u n M i c r o s y s".., 823) = 823
1911: close(6) = 0
1911: write(4, "\0", 1) = 1
1911: open64("/etc/.name_service_door", O_RDONLY) = 6
1911: fcntl(6, F_SETFD, 0x00000001) = 0
1911: door_info(6, 0xEF62BCF8) Err#9 EBADF
1911: close(6) = 0
1911: open("/etc/hosts", O_RDONLY) = 6
1911: fstat64(6, 0xEFFFBD38) = 0
1911: llseek(6, 0xFFFFFFFFFFFFFFDE, SEEK_CUR) = 109
1911: close(6) = 0
1911: stat("/var/spool/lpd/lp/temp01h0a4Ud", 0xEFFFE3E0) = 0
1911: open("/var/spool/lpd/lp/temp00g0a4Ud", O_WRONLY) = 6
1911: fcntl(6, F_FREESP, 0xEFFFE094) = 0
1911: write(6, " A m m o k r e j s @ p f".., 177) = 177
1911: close(6) = 0
1911: stat("/var/spool/lpd/lp/temp01h0a4Ud", 0xEFFFE3E0) = 0
1911: rename("/var/spool/lpd/lp/temp01h0a4Ud", "dfA910pf-i400.natur.cuni.cz") = 0
1911: rename("/var/spool/lpd/lp/temp00g0a4Ud", "cfA910pf-i400.natur.cuni.cz") = 0
1911: lseek(5, 0, SEEK_SET) = 0
1911: fcntl(5, F_FREESP, 0xEFFFE2B4) = 0
1911: write(5, "\n A = m m o k r e j s @".., 537) = 537
1911: unlink("lpq") Err#2 ENOENT
1911: close(5) = 0
1911: shutdown(4, 1) = 0
1911: close(4) = 0
1911: unlink("/var/spool/lpd/lp/temp00g0a4Ud") Err#2 ENOENT
1911: unlink("/var/spool/lpd/lp/temp01h0a4Ud") Err#2 ENOENT
-----------^ why unlink, when the original files were renamed already?
1911: open("control.pr", O_RDONLY|O_NOCTTY) = 4
1911: fstat(4, 0xEFFFE300) = 0
1911: lseek(4, 0, SEEK_SET) = 0
1911: close(4) = 0
1911: stat("/var/spool/lpd/lp", 0xEFFFE308) = 0
1911: getpid() = 1911 [1874]
1911: lstat64("/var/spool/lpd/lp/temp00i0a4Ud", 0xEFFFDD80) Err#2 ENOENT
1911: open("/var/spool/lpd/lp/temp00i0a4Ud", O_RDWR|O_CREAT|O_EXCL, 0600) = 4
1911: fchmod(4, 0600) = 0
1911: stat("/var/spool/lpd/lp/temp00i0a4Ud", 0xEFFFE308) = 0
1911: write(4, " c h a n g e = 0 x 1\n", 11) = 11
1911: close(4) = 0
1911: rename("/var/spool/lpd/lp/temp00i0a4Ud", "control.pr") = 0
1911: unlink("lpq") Err#2 ENOENT
1911: unlink("lpq") Err#2 ENOENT
---------------^ what are they? They weren't created yet!
1911: write(3, "\n", 1) = 1
1874: kill(1911, SIG#0) = 0
1911: chdir("/var/spool/lpd/lp") = 0
1911: open("control.pr", O_RDONLY|O_NOCTTY) = 4
1911: fstat(4, 0xEFFFD428) = 0
1911: lseek(4, 0, SEEK_SET) = 0
1911: close(4) = 0
1911: umask(0) = 077
1911: open("/var/spool/lpd/lp/lock.pr", O_RDWR|O_APPEND|O_CREAT|O_NOCTTY, 0600) = 4
1911: umask(077) = 0
1911: fstat(4, 0xEFFFDDD0) = 0
1911: fcntl(4, F_SETLK, 0xEFFFD784) = 0
1911: getpid() = 1911 [1874]
1911: lseek(4, 0, SEEK_SET) = 0
1911: fcntl(4, F_FREESP, 0xEFFFD704) = 0
1911: write(4, " 1 9 1 1\n", 5) = 5
1911: unlink("lpq") Err#2 ENOENT
1911: stat("log", 0xEFFFAFB0) = 0
1911: close(-1) Err#9 EBADF
---------------^ uhh
1911: umask(0) = 077
--------------^ ???
1911: open("log", O_WRONLY|O_APPEND|O_NOCTTY) = 5
1911: umask(077) = 0
1911: fstat(5, 0xEFFFAFB0) = 0
1911: fcntl(5, F_DUP2FD, 0x00000002) = 2
1911: close(5) = 0
1911: open("control.pr", O_RDONLY|O_NOCTTY) = 5
1911: fstat(5, 0xEFFFD618) = 0
1911: lseek(5, 0, SEEK_SET) = 0
1911: close(5) = 0
1911: stat("/var/spool/lpd/lp", 0xEFFFD6A8) = 0
1911: getpid() = 1911 [1874]
1911: lstat64("/var/spool/lpd/lp/temp01j0a4Ud", 0xEFFFD120) Err#2 ENOENT
1911: open("/var/spool/lpd/lp/temp01j0a4Ud", O_RDWR|O_CREAT|O_EXCL, 0600) = 5
1911: fchmod(5, 0600) = 0
1911: stat("/var/spool/lpd/lp/temp01j0a4Ud", 0xEFFFD6A8) = 0
1911: write(5, " c h a n g e = 0 x 0\n", 11) = 11
1911: close(5) = 0
1911: rename("/var/spool/lpd/lp/temp01j0a4Ud", "control.pr") = 0
1911: unlink("lpq") Err#2 ENOENT
1911: open64(".", O_RDONLY|O_NDELAY) = 5
1911: fcntl(5, F_SETFD, 0x00000001) = 0
1911: fstat64(5, 0xEFFFD4C0) = 0
1911: getdents64(5, 0x00032CC0, 1048) = 760
1911: open("hfA345", O_RDONLY|O_NOCTTY) = 6
1911: fstat(6, 0xEFFFD430) = 0
1911: lseek(6, 0, SEEK_SET) = 0
1911: close(6) = 0
1911: stat("dfA345pf-i400.natur.cuni.cz", 0xEFFFD490) = 0
1911: open("hfA884", O_RDONLY|O_NOCTTY) = 6
1911: fstat(6, 0xEFFFD430) = 0
1911: lseek(6, 0, SEEK_SET) = 0
1911: close(6) = 0
1911: stat("dfA884pf-i400.natur.cuni.cz", 0xEFFFD490) = 0
1911: open("hfA910", O_RDONLY|O_NOCTTY) = 6
1911: fstat(6, 0xEFFFD430) = 0
1911: lseek(6, 0, SEEK_SET) = 0
1911: close(6) = 0
1911: stat("dfA910pf-i400.natur.cuni.cz", 0xEFFFD490) = 0
1911: getdents64(5, 0x00032CC0, 1048) = 0
1911: close(5) = 0
1911: open("hfA910", O_RDONLY|O_NOCTTY) = 5
1911: fstat(5, 0xEFFFD698) = 0
1911: lseek(5, 0, SEEK_SET) = 0
1911: close(5) = 0
1911: open("hfA345", O_RDONLY|O_NOCTTY) = 5
1911: fstat(5, 0xEFFFD698) = 0
1911: lseek(5, 0, SEEK_SET) = 0
1911: close(5) = 0
1911: open("hfA884", O_RDONLY|O_NOCTTY) = 5
1911: fstat(5, 0xEFFFD698) = 0
1911: lseek(5, 0, SEEK_SET) = 0
1911: close(5) = 0
1911: unlink("/var/spool/lpd/lp/temp00i0a4Ud") Err#2 ENOENT
1911: unlink("/var/spool/lpd/lp/temp01j0a4Ud") Err#2 ENOENT
1911: open("hfA910", O_RDONLY|O_NOCTTY) = 5
1911: fstat(5, 0xEFFFD1B0) = 0
1911: lseek(5, 0, SEEK_SET) = 0
1911: close(5) = 0
1911: open("hfA345", O_RDONLY|O_NOCTTY) = 5
1911: fstat(5, 0xEFFFD1B0) = 0
1911: lseek(5, 0, SEEK_SET) = 0
1911: close(5) = 0
1911: open("hfA884", O_RDONLY|O_NOCTTY) = 5
1911: fstat(5, 0xEFFFD1B0) = 0
1911: lseek(5, 0, SEEK_SET) = 0
1911: close(5) = 0
1911: open("hfA910", O_RDONLY|O_NOCTTY) = 5
1911: fstat(5, 0xEFFFD1B0) = 0
1911: lseek(5, 0, SEEK_SET) = 0
1911: close(5) = 0
1911: stat("status.pr", 0xEFFFA7C8) = 0
1911: close(-1) Err#9 EBADF
1911: umask(0) = 077
1911: open("status.pr", O_WRONLY|O_APPEND|O_NOCTTY) = 5
1911: umask(077) = 0
1911: fstat(5, 0xEFFFA7C8) = 0
1911: getpid() = 1911 [1874]
1911: write(5, " j o b ' m m o k r e j".., 112) = 112
------------v
1911: stat("dfA910pf-i400.natur.cuni.cz", 0xEFFFD240) = 0
1911: unlink("dfA910pf-i400.natur.cuni.cz") = 0
1911: stat("dfA910pf-i400.natur.cuni.cz", 0xEFFFD240) Err#2 ENOENT
1911: stat("dfA910pf-i400.natur.cuni.cz", 0xEFFFD240) Err#2 ENOENT
1911: stat("cfA910pf-i400.natur.cuni.cz", 0xEFFFD240) = 0
1911: unlink("cfA910pf-i400.natur.cuni.cz") = 0
1911: stat("cfA910pf-i400.natur.cuni.cz", 0xEFFFD240) Err#2 ENOENT
1911: stat("hfA910", 0xEFFFD240) = 0
1911: unlink("hfA910") = 0
1911: stat("hfA910", 0xEFFFD240) Err#2 ENOENT
1911: unlink("lpq") Err#2 ENOENT
------------^
1911: open("hfA345", O_RDONLY|O_NOCTTY) = 6
1911: fstat(6, 0xEFFFD698) = 0
1911: lseek(6, 0, SEEK_SET) = 0
1911: close(6) = 0
1911: stat("dfA345pf-i400.natur.cuni.cz", 0xEFFFD788) = 0
1911: open("hfA884", O_RDONLY|O_NOCTTY) = 6
1911: fstat(6, 0xEFFFD698) = 0
1911: lseek(6, 0, SEEK_SET) = 0
1911: close(6) = 0
1911: stat("dfA884pf-i400.natur.cuni.cz", 0xEFFFD788) = 0
1911: fcntl(4, F_FREESP, 0xEFFFD82C) = 0
1911: close(4) = 0
1911: unlink("lpq") Err#2 ENOENT
1911: sigsuspend(0xEFFFD7E0) (sleeping...)
--
Martin Mokrejs <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics <http://mips.gsf.de>
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------