Thanks for everyones responses and patience in previous posts.
I really wonder what is going on !? Some people seem to have no problems
while others (like me) keep running into the wall. L-M 6.1 Helios
I recently had another outburst of strangeness with lprm locking and
/dev/lp0 disappearing but was able to bring it all back to life again
after deleting the lp directory, leaving the 'lock' file in
/var/spool/lpd, removing any printers in 'printtool' and actually having
to reboot. This was a system that worked fine one evening and as I
attempted to print the next am (machine had been left on ) there was
nothing happening and lprm stalls out and the ques build up.
I am still using lpr-0.38-3mdk.i586.rpm after the rpm -e
lpr-0.43-1mdk.i586.rpm and can only wonder if something residual was
left around which might affect my paticular setup. Of course I must
reinterate that non of this had ever happened in 4 years Printer setups
on Linux .
If anyone cares to examine some of the notes I kept this time they are
in the attached file!
Good Hunting
William Bouterse
Juneau, Alaska
The stranges thing is after attempting to print when the machine is
"acting up" I find that there is more than one lpd (pid)
[root@home /root]# lpd restart
[root@home /root]# /etc/rc.d/init.d/lpd status
lpd (pid 5489 5456) is running...
[root@home /root]# kill -9 5489
[root@home /root]# /etc/rc.d/init.d/lpd status
lpd (pid 5456) is running...
[root@home /root]# lpq
Warning: no daemon present
Rank Owner Job Files Total Size
1st root 6 printer-probs 2373 bytes
2nd root 7 printer-probs 2373 bytes
[root@home /root]# lprm 6
dfA006home.mentasta.org dequeued
cfA006home.mentasta.org dequeued
[root@home /root]# lprm 7
dfA007home.mentasta.org dequeued
cfA007home.mentasta.org dequeued
[root@home /root]# lpq
no entries
[root@home /root]# lpc status
lp:
queuing is enabled
printing is enabled
no entries
no daemon present
#Any attempt to print starts another pid
[root@home /root]# lpr Xrootenv.0
[root@home /root]# lpq
waiting for lp to become ready (offline ?)
Rank Owner Job Files Total Size
1st root 10 Xrootenv.0
[root@home /root]# lpc status
lp:
queuing is enabled
printing is enabled
1 entry in spool area
waiting for lp to become ready (offline ?)
[root@home /root]# /etc/rc.d/init.d/lpd status
lpd (pid 5549 5456) is running...
#from here lprm stalled out again but worked once
#if I remove the higher 'pid #' .
#However it didnt work on anothere try at lprm #
#Then I can lprm 10 but after that nothing prints on another attempt and
#another lpd pid is started and on it goes again
[root@home /root]# kill -9 5456
[root@home /root]# /etc/rc.d/init.d/lpd status
lpd (pid 5549) is running...
[root@home /root]# lprm 10
[root@home /root]# /etc/rc.d/init.d/lpd status
lpd (pid 5549) is running...
[root@home /root]# lpq
waiting for lp to become ready (offline ?)
Rank Owner Job Files Total Size
1st root 10
981 bytes
[root@home /root]# lprm
(it stalls out here when it had worked before)
[root@home /root]# kill -9 5549
[root@home /root]# /etc/rc.d/init.d/lpd status
lpd dead but subsys locked
#I removed the lp directory in /var/spool/lpd
#rm -R -f lp
[root@home /root]# lpc status
lp:
queuing is enabled
printing is enabled
cannot examine spool directory
[root@home /root]# lpd restart
[root@home /root]# /etc/rc.d/init.d/lpd status
lpd (pid 5610) is running...
#Okay I go into 'printtool and:'add local printer'
#Does not detect /dev/lp0
[root@home /root]# ls -l /dev/lp0
crw-rw---- 1 root daemon 6, 0 May 5 1998 /dev/lp0
[root@home /root]# ls -l /dev/lp
-rw-r--r-- 1 root root 50 Oct 23 16:12 /dev/lp
[root@home /root]# /etc/rc.d/init.d/lpd status
lpd (pid 5610) is running...
#So what is happening?
#I reboot
#Bring up and check status on lpd, yes it is running
#try a 'lpr filename' and of course no lp as I deleted it previously
#bring up 'printtool'
#Go to 'add printer' ,click okay, and it locks up !!!HUH ???
#close it out
#do a '/etc/rc.d/init.d/lpd restart'
#bring up 'printtool' again and 'add printer'
#This time it comes up and detects lp !
#Go figure!!!???
Configure the printer and IT WORKS !!! And Prints both in root and users
Same thing happened yesterday but This am nothing worked?!
Now it does but for How Long???