1827251 Members
2933 Online
109716 Solutions
New Discussion

lp sched-- problems

 
SOLVED
Go to solution
SSO Montgomery
Advisor

lp sched-- problems

I am trying to stop the scheduler so I can add a new printer/queue.

I tried using SAM, printers & plotters, print queues, printers and ploters

I also tried lpshut

I attempted to add a printer using SAM, too - unable as scheduler will not
shutdown
I tried using a utility IBMnp (IBM net print) - same basic error, lpsched
active - shutdown first.


when I ps-ef | grep lp
I get:

lpsched
6 REPLIES 6
harry d brown jr
Honored Contributor
Solution

Re: lp sched-- problems

Try killing it, with first just

kill

if that doesn't work, try these

kill -5
kill -15
kill -9


live free or die
harry
Live Free or Die
Ian Dennison_1
Honored Contributor

Re: lp sched-- problems

I think there is a sched.lock (or is it SCHED.LOCK) file in one of the lp directories that it is best to remove after killing the 'lpsched' daemon in this manner. Can't find the man page on it.

Share and Enjoy! Ian
Building a dumber user
Patrick Wallek
Honored Contributor

Re: lp sched-- problems

You could also try doing:

# /sbin/init.d/lp stop

Although this just does an lpshut as well. If all else fails kill may be your only option.
Vincent Farrugia
Honored Contributor

Re: lp sched-- problems

Try to kill it with kill -9.

HTH,
Vince
Tape Drives RULE!!!
S.K. Chan
Honored Contributor

Re: lp sched-- problems

If you got multiple lpsched processes, lpshut somoetimes fail to do the job.
Got to do this :

1. Kill -9 on all lpsched sessions.
2. Suppress the CLD_FIFO, FIFO, and SCHEDLOCK files in the /var/spool/lp directory.
3. Use this command:
/usr/sbin/lpsched -v -a
4. Shut down spooler:
/usr/sbin/lpshut