Operating System - HP-UX
1833051 Members
2485 Online
110049 Solutions
New Discussion

Stopping the lp from logging to /tmp/pdenq.log

 

Stopping the lp from logging to /tmp/pdenq.log

Here you go - This was turned on when someone went into sam and into Printers & Plotters
then DPS Spooler and answered "Y" to there is no dps spooler queue do you wish to create one?:

From this point on all lp commands will cause the pdenq.log file to grow.
To Kill this logging:

# /sbin/init.d/pd stop
No supervisor HPDPS component(s) running.
No spooler HPDPS component(s) running.
pdclientd stopped.
basicdsd stopped.
# cd /etc/rc.config.d/

EDIT THE FILE pd BELOW AND CHANGE THE VALUE of PD_CLIENT=1 to 0
# vi pd

This was the cron job that executed lp commands on our box which cause the file to grow.
# ps -ef |grep -i lp
promgr 5000 1997 0 14:40:00 ? 0:00 sh -c /home/promgr/bin/lblprt.pl
kill all processes for lp with kill -9

Go to the directory below...
# cd /var/opt/pd
Remove the file basicdsd.db...
# rm basicdsd.db
Remove the dir and contents pdclientd/
# rm -r pdclientd/
Delete the file if you already didn't in /tmp/pdenq.log

The problem should be fixed.

This should only be done if you are not using the DPS spooler and someone inadvertently turned it on.