Queuing system problems

The queuing system shows one or more queues in the DEV_WAIT status when you have verified that the queue is not waiting on the printer. The queue may not wait because the printer is offline, is out of paper, is jammed, or the cable is loose, bad, or wired incorrectly, and the queue is not changed to DOWN status within the TIMEOUT period. In this scenario, use the following method to clear and restart the queuing system.

This method stops the qdaemon, removes all the queued jobs, and restarts the qdaemon. You must have root authority.

To stop the qdaemon daemon, use the following command:
stopsrc -s qdaemon
ps -e | fgrep qd
kill -9 PIDNumbers
where PIDNumbers are any PIDs resulting from running the ps command.
ps -e | fgrep pio
kill -9 PIDNumbers
rm /var/spool/lpd/stat/_dev_DEVICE
where DEVICE is the device that is showing the DEV_WAIT status.
rm /var/spool/lpd/stat/s.QUEUE.DEVICE
where QUEUE is the queue and DEVICE is the device that is showing the DEV_WAIT status.
mkdir /tmp/QDIR
mv /var/spool/lpd/qdir/NNUSER:QUEUE /tmp/QDIR
where NN is a number, USER is the user who queued the job and QUEUE is the queue that is showing the DEV_WAIT status.
To start the qdaemon daemon, use the following command:
startsrc -s qdaemon

After the queueing system is cleared and functions properly, you need to stop the qdaemon, copy the jdf files from the /tmp/QDIR path to /var/spool/lpd/qdir path, and then restart the qdaemon.