QUESTION:
Sparc10m20 running 4.1.3, printing to a generic PS printer.
The queue is stuck, and lpq responds with the error
"waiting for lock on /dev/ttya". What does this mean?
[SELECTED] RESPONSES:
1 It probably means some other process has executed a flock() or lockf()
call against /dev/ttya already. Are you sure ttya is disabled in ttytab
so there is no getty running on it?
2 kill off lpd, switch off the printer and wait a few
seconds, switch the printer on again and kick off lpd
3 The solution is to find any process called "pscomm" which may be running and
kill it (them). What I do is a "ps -aux | grep pscomm" and then kill the
offending processes.
4 Do a ps -auxgww and look for jobs that are owned by daemon.
SOLUTION
I double-checked for #1; the ttytab file was correct.
I tried #2, that didn't work. #3 was on the right track, but the
process was not called 'pscomm'. I did #4, and yes, there was a
daemon-owned process called 'npcomm.T'. I killed it, and that
immediately freed up the queue.
Thanks everyone!
-------------------------------------------------------------------
David Mostardi Email: david@capmkt.com
Senior Support & Systems Manager Phone: (510) 540-6400
Capital Market Technology, Inc. FAX: (510) 540-5505
1995 University Ave. #390, Berkeley CA 94704
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:07:45 CDT