1847253 Members
4243 Online
110263 Solutions
New Discussion

Spooler Problem

 
deepak_9
Frequent Advisor

Spooler Problem

Hi Guys,

I can't stop lp spooler of my superdome [hpux11.11] server. It's not responding if I am doing "lpshut" and "lpsched" . I have also tried by removing "SCHEDLOCK" file but didn't succeed.....pl suggest.

Regards
Never Ever give Up !!!!!
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: Spooler Problem

Try
/sbin/init.d/lp shut
and see if that does it.

Pete

Pete
Peter Kloetgen
Esteemed Contributor

Re: Spooler Problem

Hi Deepak,

This sounds like you have a zombie process. What about ps- command, which PID and PPID can you see for the process? Is the PPID still running? Can you kill PID of spooler process?

Allways stay on the bright side of life!

Peter
I'm learning here as well as helping
steven Burgess_2
Honored Contributor

Re: Spooler Problem

Deepak

Have you had this issue before ?

Check for any hung spooler processes

ps -u lp

As Pete advises try and stop using script

# /sbin/init.d/lp stop
# /sbin/init.d/lp start

Have you checked you have got the latest patches for the spooler ?

There is another file as well called templock -
which I recall has caused issues before. Can't perform a search at the moment - not near a system so can't advise further. Try a find on that file

HTH

Steve
take your time and think things through
Bill Hassell
Honored Contributor

Re: Spooler Problem

Find all the spooler processes with:

ps -fu lp

Then use kill -9 for any lp spooler processes. Most likely the hung process(es) is waiting on LAN I/O that will never complete. Pay attention to the printer queue(s) that seem to be hung--these may be problems that need addressing.

Once all processes for lp have been terminated, the spooler should start normally. lpshut simply sends a standard termination signal to all lp processes but this signal may not get through.


Bill Hassell, sysadmin
Steve Steel
Honored Contributor

Re: Spooler Problem

Hi

1)As shown remove all spooler processes with kill -9

2)remove FIFO and SCHEDLOCK from the spooler dir

3)Script
#!/bin/ksh
#
#Printer parameter
#
# parameter is enable disable accept or reject to do all printers
#
option=$1
xx=`lpstat -p|grep printer|cut -f2 -d" "`
for printer in $xx
do
case $option in
accept) accept $printer ;;
reject) reject $printer ;;
enable) enable $printer ;;
disable) disable $printer ;;
*)echo invalid parameter ;;
esac
done

Put this on your machine and do
script disable.

4)lpsched

The spooler should start

5)Either enable the printers 1 by 1 and check for problems or

script enable

All printers will be enabled.


Then you can see easily.

If still bad try lpsched -v
and look in /var/adm/lp/log for messages


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
MANOJ SRIVASTAVA
Honored Contributor

Re: Spooler Problem

Deepak

ps -aef | grep lp

and kill all the procees .

Also you can try by /sbin/init.d/lp shut , but the first one is more effective.


Manoj Srivastava
K.Vijayaragavan.
Respected Contributor

Re: Spooler Problem

Hope by now your problem would have been resolved. If not , can you display "lpstat -t & lpstat -a" command outputs.

Regards,

K.Vijay
"Let us fine tune our knowledge together"