1833589 Members
3808 Online
110061 Solutions
New Discussion

Re: LPSHUT not working

 
Nair1980
Frequent Advisor

LPSHUT not working

when i am giving an lpshut .. it is not stoppiing my lpscheduler .. any idea ..

so I am not able to start it agian
and all print jobs are blocked

thanks in advance
8 REPLIES 8
Tim Nelson
Honored Contributor

Re: LPSHUT not working

have you looked for any child processes from lpsched ?

Have you tried kill -17, kill -15, kill -11 or eventually kill -9 ?

My first assumption is that it is stuck attempting to process a job to somewhere that is not responding.

Nair1980
Frequent Advisor

Re: LPSHUT not working

i tried kill -9 lpsched
Bill Hassell
Honored Contributor

Re: LPSHUT not working

I am assuming you meant:

kill -9 ####

where #### is the process ID of the lpsched processes. If you typed kill -9 lpsched then you got an error message because kill never works with a name. You need to find *all* the lp processes like this:

ps -u lp

Then issue a simple kill signal to each process ID (PID) number. You can put all the PIDs on one line:

kill -15 123 1234 12345 22 33

then repeat the command changing the kill level to -1, then -9. Now repeat the ps -u lp command. All the processes that cannot be killed with -9 are waiting on I/O, very probably network I/O. In that case, you'll have to reboot. All unfinished jobs will be reprinted when you boot up.


Bill Hassell, sysadmin
Nair1980
Frequent Advisor

Re: LPSHUT not working

When i give
ps -u lp
# ps -u lp
PID TTY TIME COMMAND
5322 ? 0:00 JABILM001
5347 ? 0:00 JABILM032
5403 ? 0:00 rlp
5556 ? 0:00 rlp
5203 ? 0:00 lpsched
22139 ? 0:00 lpsched
5598 ? 0:00 rlp
5211 ? 0:00 lpsched
5235 ? 0:00 lpsched
5467 ? 0:00 rlp
5221 ? 0:00 lpsched
5223 ? 0:00 lpsched
5277 ? 0:00 JABILM008
5442 ? 0:00 rlp
5450 ? 0:00 rlp
5241 ? 0:00 JABILM019
5314 ? 0:00 Juarez_prt18
5309 ? 0:00 Juarez_prt01
5208 ? 0:00 lpsched
5415 ? 0:00 rlp
5368 ? 0:00 rlp
5256 ? 0:00 JABILP001
5333 ? 0:00 Juarez_prt09
5182 ? 0:00 lpsched
5572 ? 0:00 rlp
5587 ? 0:00 rlp
5198 ? 0:00 lpsched
5331 ? 0:00 Billingiden01
5201 ? 0:00 lpsched
5305 ? 0:00 PLPR632
5258 ? 0:00 JABILP002
5284 ? 0:00 JABILM015
5554 ? 0:00 rlp
5205 ? 0:00 lpsched
5528 ? 0:00 rlp
5231 ? 0:00 lpsched
5390 ? 0:00 rlp
5236 ? 0:00 lpsched
5419 ? 0:00 rlp
5263 ? 0:00 rlp
5497 ? 0:00 hpnpf
22146 ? 0:00 JabilR007
5299 ? 0:00 JABILM024
5271 ? 0:00 JABILP003
5216 ? 0:00 lpsched
5202 ? 0:00 lpsched
28020 ? 0:00 lp
5225 ? 0:00 lpsched
5232 ? 0:00 lpsched
5412 ? 0:00 rlp
5332 ? 0:00 EXELM01
5471 ? 0:00 rlp
5188 ? 0:00 lpsched
22150 ? 0:00 rlp
5427 ? 0:00 rlp
5185 ? 0:00 lpsched
5402 ? 0:00 rlp
5604 ? 0:00 rlp
5197 ? 0:00 lpsched
5290 ? 0:00 JABILM021
5373 ? 0:00 rlp
28021 ? 0:00 sh
5374 ? 0:00 rlp
5194 ? 0:00 lpsched
5190 ? 0:00 lpsched
5214 ? 0:00 lpsched
5342 ? 0:00 fl08pr042
5346 ? 0:00 JabilR002
5272 ? 0:00 JABILP004
5330 ? 0:00 Juarez_prt08
5354 ? 0:00 rlp
5553 ? 0:00 rlp
5267 ? 0:00 JABILM006
5316 ? 0:00 tpack_04
5552 ? 0:00 rlp
5189 ? 0:00 lpsched
5315 ? 0:00 JABILM025
5228 ? 0:00 lpsched
5227 ? 0:00 lpsched
5193 ? 0:00 plpr606
5343 ? 0:00 JABILR02
3005 ? 6:00 lpsched
5213 ? 0:00 lpsched
5259 ? 0:00 IL105_Iden06



Shall I kill all this process with the method above mentioned , will it make any problem (as this list contains some rlp process)

once it is killed what to do ?

Shall i restart the lp from /sbin/init.d/lp stop & lp start
Bill Hassell
Honored Contributor

Re: LPSHUT not working

> Shall I kill all this process with the method above mentioned , will it make any problem (as this list contains some rlp process)

Yes, you need to kill all the processes. Obviously, a lot of lp processes are running but they are ignoring the lpshut request. Since lp is not working properly, you'll have to shutdown everything that is owned by lp.

> once it is killed what to do ?

Almost always, lp problems like this are caused by network failures. You'll need to fix the network issues. If you do not have good network administrators to help find the problems, you can disable *ALL* the printers after killing all the lp processes. Then enable one printer at a time and look for a problem.

> Shall i restart the lp from /sbin/init.d/lp stop & lp start

The lp start/stop script just issues an lpshut (which doesn't work) and lpsched. I would also get your system patched to within 6 months of current bundles.


Bill Hassell, sysadmin
whiteknight
Honored Contributor

Re: LPSHUT not working

Nair,

It is a general issue of lp daemon.

I see your ps output show a lot of lpsched daemon, please kill -9 those lpsched daemons and make sure no more daemon running for lpsched.

Also make sure you update lpspooler patch as it fixed number of known issues

11.11 PHCO_34993 lpspool cumulative patch
11.23 PHCO_36440 lpspool cumulative

WK

Problem never ends, you must know how to fix it
Nair1980
Frequent Advisor

Re: LPSHUT not working

All,

I killed all process and restarted my lp .. now working

also cheked for the patches mentioned .. the same is available with the server

Thanks all for your help

Nair
Nair1980
Frequent Advisor

Re: LPSHUT not working

Killed all proecess from out put of

#ps -u lp
#kill -15
#kill -1
#kill -9

Restrted lp

#lpshut
#lpsched