1849866 Members
2219 Online
104045 Solutions
New Discussion

Re: lpsched problem

 
SOLVED
Go to solution
Joyce Suganthy
Advisor

lpsched problem

Hi,

I have a problem in some serves. The lpsched is always down when the machine is rebooted, and i have to manually bring it up. When i check the /etc/rc.log the starting up of the /lpsched is SKIPPED. Please advice

regards
Joyce
12 REPLIES 12
Michael Tully
Honored Contributor

Re: lpsched problem

Hi,

Make sure that the /etc/rc.config.d/lp file has a '1' instead of a '0'. Having a zero tells the script to skip starting the daemon. See my example below.

#!/sbin/sh
# @(#)B.11.11_LR
# LP spooler configuration
#
# LP: Set to 1 to start LP spooler
#
LP=1

Regards
Michael
Anyone for a Mutiny ?
Joyce Suganthy
Advisor

Re: lpsched problem

Michel.

I have checked the setting is set to 1. Please advice

Regards
Michael Tully
Honored Contributor

Re: lpsched problem

okay, what commmand(s) do you use to manually start the spooler?

what happens when you use?
# /sbin/init.d/lp start

What is in the output in /etc/rc.log when the spooler has attempted to start. Here is a snippet from mine.

Start print spooler
Output from "/sbin/rc2.d/S720lp start":
----------------------------
scheduler is running
line printer scheduler started
Anyone for a Mutiny ?
Joyce Suganthy
Advisor

Re: lpsched problem

Hi

This is what I encountered in /etc/rc.log

Start print spooler
Output from "/sbin/rc2.d/S720lp start":
----------------------------
"/sbin/rc2.d/S720lp start" SKIPPED


regards
joyce
Patrick Wallek
Honored Contributor

Re: lpsched problem

What happens if you do an:

# ll /etc/rc.config.d/lp*

Do you have more than one lp file? Maybe an lp.bak or an lp.old? If so, remove it. You never want to keep any backup files in /etc/rc.config.d as they can thoroughly mess up your box when it boots.

Joyce Suganthy
Advisor

Re: lpsched problem

Hi,

I don see any files except this

-r--r--r-- 1 bin bin 108 Nov 14 2000 /etc/rc.config.d/lp

Please advice

Joyce
Bill Hassell
Honored Contributor

Re: lpsched problem

Start by running the lp startup script in trace mode:

sh -x /sbin/init.d/lp start 2>&1 | more

The 2>&1 redirects the trace output to stdout and more gives you a chance to look at the results. Or you can simply change |more to > /var/tmp/somefile so you can paste the results here. There are two conditions required in the script to start:

$LP must be 1 and -s /var/spool/lp/pstatus which means pstatus must exist and not be zero length.


Bill Hassell, sysadmin
T G Manikandan
Honored Contributor

Re: lpsched problem

The problem is with the /var/spool/lp/pstatus equal to 0 which will not start the services.

check this doc

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062942437
Joyce Suganthy
Advisor

Re: lpsched problem

hi TG Manikandan,

I will try the solution given .

Thanks again

Regards
Joyce
Bill Hassell
Honored Contributor
Solution

Re: lpsched problem

Just a logic note: if pstatus is zero length, then there are no printers defined and there is no reason for lpsched to run. So until you define a printer, the lp spooler will not be started at bootup.


Bill Hassell, sysadmin
Joyce Suganthy
Advisor

Re: lpsched problem

hi,

I have another question, that option given by Manikandan is to create a dummy printer...

Well I have checked with my admin here locally that the lpsched would not start at boot if there is no defined printer in the server. Creating a dummy printer would be an option

But is there any doc that supports this?


Thanks

Regards

Bill Hassell
Honored Contributor

Re: lpsched problem

Sure. The startup script /sbin/init.d/lp clearly documents this behavior. If the pstatus file is missing or zero length, lpsched is not started. (pstatus is the list of installed printers) Is it documented in the manuals? I doubt it. It's more of a common sense feature...why would you want to start lpsched if there are no printers defined?


Bill Hassell, sysadmin