1832498 Members
6209 Online
110043 Solutions
New Discussion

lpsched not running

 
SOLVED
Go to solution
MarkSyder
Honored Contributor

lpsched not running

Hi everybody.

I've been installing kernel patches on an HP-UX 11.0 server.

A check of Big Brother shows that the lpsched process is not starting automatically. I've looked in /etc/rc.log and it is starting to run the process but then comes up with the message "/sbin/rc2.d/S720lp start" SKIPPED, without any explanation as to why it's skipped.
Running the command manually works.

I have got a good ignite backup, but I've installed so many patches I'd rather not resort to that. Any ideas?

Mark Syder (like the drink but spelt different)

The triumph of evil requires only that good men do nothing
11 REPLIES 11
Mark Grant
Honored Contributor

Re: lpsched not running

Mark,

I'm nowhere near an hpux box at the moment but this would suggest to me that there is an /etc/rc.config.d/lpsched or something file that is saying "don't start the scheduler".
Never preceed any demonstration with anything more predictive than "watch this"
Michael Tully
Honored Contributor

Re: lpsched not running

I'm not near a system right now, but is there a /etc/rc.config file that needs to be changed so that the daemon starts automatically?
Anyone for a Mutiny ?
G. Vrijhoeven
Honored Contributor

Re: lpsched not running

Hi Mark,

How is your /etc/rc.config.d/lp set up?

# @(#) $Revision: 72.3 $
# LP spooler configuration
#
# LP: Set to 1 to start LP spooler
#
LP=1


Gideon
Ravi_8
Honored Contributor
Solution

Re: lpsched not running

Hi,

Have you configured printer services in your machine?
never give up
MarkSyder
Honored Contributor

Re: lpsched not running

Hi everybody and thanks for the remarkably prompt answers.

Yes, that's exactly what the file looks like. I've compared it with the same file on a working server as well - it's exactly the same.

Mark
The triumph of evil requires only that good men do nothing
G. Vrijhoeven
Honored Contributor

Re: lpsched not running

Mark,

The /etc/rc.config/* files are all sourced. could it be that there is an other file in there that sets the LP var to 0 .

Gideon

Mark Grant
Honored Contributor

Re: lpsched not running

Then compare

/sbin/rc2.d/S720lp

With a working one, perhaps it's looking at the wrong config file.
Never preceed any demonstration with anything more predictive than "watch this"
Robert-Jan Goossens
Honored Contributor

Re: lpsched not running

Mark,

In /etc/services make sure the line is uncommented:

printer 515/tcp spooler #remote print spooling

In /etc/inetd.conf make sure the line is uncommented:

printer stream tcp nowait root /usr/sbin/rlpdaemon rlpdaemon -i

Best regards,
Robert-Jan
Dietmar Konermann
Honored Contributor

Re: lpsched not running

Mark,

if you look at /sbin/init.d/lp, then you see that lpsched is only started "if [ "$LP" -eq 1 -a -s /var/spool/lp/pstatus ]".

So I would guess that /var/spool/lp/pstatus is either not existing or 0 bytes in size. This means that lpsched is only started if there is at least one printer configured.

So, maybe there's no printer configured on this system? :-)

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Jose Mosquera
Honored Contributor

Re: lpsched not running

Hi,

Pls chk if SCEDLOCK or FIFO files are into /var/spoo/lp. In this case you could have an inconsistence in the /var/spool/lp/request/ tree structure, where eah printer defined must have your corresponding directory.

If you have a previous spool copy from SAM just restore it. A good preventive task is make periodically in SAM/Printers and Ploters/LP Spooler/Save-RestoreSpooler Configuration/Action/Save Spooler Configuration

When you need restore this configuration just select Restore Spooler Configuration in same path showed above.

Rgds.
MarkSyder
Honored Contributor

Re: lpsched not running

Hi everybody.

Full marks to Ravi.

How embarrassing - this is a test server that I'm preparing for live. It's probably never had lpsched running and we've only just noticed.

Thanks for all the suggestions.

Mark
The triumph of evil requires only that good men do nothing