Operating System - HP-UX
1748041 Members
4954 Online
108757 Solutions
New Discussion юеВ

Re: Trouble with lpsched on HP-UX 11.31

 
SOLVED
Go to solution
Halldor Runar Haflidaso
Occasional Advisor

Trouble with lpsched on HP-UX 11.31

Hi,

This is an fresh install of HP-UX 11.31.0803 with QPKAPP B.11.31.0809.326 installed.

The trouble is I can't start the lp scheduler:

root@mls-test-01 # lpsched -v
lpsched: scheduler could not be started

Nothing is created in /var/adm/lp
root@mls-test-01 # ls -l /var/adm/lp
total 0


Permissions:
root@mls-test-01 # ls -ld /var/spool/lp
drwxr-xr-x 4 lp bin 8192 j├║n 16 21:23 /var/spool/lp/

root@mls-test-01 # ls -ld /var/adm/lp
drwxr-xr-x 2 lp bin 96 j├║n 16 19:47 /var/adm/lp/

root@mls-test-01 # ls -ld /usr/lib/lp
drwxr-xr-x 7 lp bin 96 j├║n 16 19:46 /usr/lib/lp/


Nothing relevant is posted in syslog nor anywhere I can find.

I've tried removing the PrintMgr depot and reinstalled it. Tried to start the lpsched through smh / sam, to no avail, never starts up.

Any ideas?
14 REPLIES 14
Fabian Brise├▒o
Esteemed Contributor

Re: Trouble with lpsched on HP-UX 11.31

Hello.

Did you check if the SCHEDLOCK file excists?
if so, remove it.
rm SCHEDLOCK

do a ps -fe and look for any lpsched procs and kill them

Any error messages during installation?

Regards.
Knowledge is power.
Halldor Runar Haflidaso
Occasional Advisor

Re: Trouble with lpsched on HP-UX 11.31

Hi,

No unfortunately no such files:


halldorh@mls-test-01 > ls -lrt /var/spool/lp
total 0
lr-xr-xr-x 1 bin bin 18 j├Г┬║n 16 19:46 cmodel@ -> /usr/lib/lp/cmodel
lr-xr-xr-x 1 bin bin 17 j├Г┬║n 16 19:46 fonts@ -> /usr/lib/lp/fonts
lr-xr-xr-x 1 bin bin 17 j├Г┬║n 16 19:46 model@ -> /usr/lib/lp/model
lr-xr-xr-x 1 bin bin 18 j├Г┬║n 16 19:46 smodel@ -> /usr/lib/lp/smodel
-rw-r--r-- 1 lp lp 0 j├Г┬║n 16 19:47 outputq
-rw-r--r-- 1 lp lp 0 j├Г┬║n 16 19:47 qstatus
-rw-r--r-- 1 lp lp 0 j├Г┬║n 16 19:47 pstatus
lrwxr-xr-x 1 root sys 18 j├Г┬║n 16 19:47 sinterface@ -> /etc/lp/sinterface
lrwxr-xr-x 1 root sys 13 j├Г┬║n 16 19:47 class@ -> /etc/lp/class
lrwxr-xr-x 1 root sys 17 j├Г┬║n 16 19:47 interface@ -> /etc/lp/interface
lrwxr-xr-x 1 root sys 14 j├Г┬║n 16 19:47 member@ -> /etc/lp/member
lrwxr-xr-x 1 root sys 12 j├Г┬║n 16 19:47 info@ -> /etc/lp/info
lrwxr-xr-x 1 root sys 18 j├Г┬║n 16 19:47 cinterface@ -> /etc/lp/cinterface
drwxr-xr-x 2 lp bin 96 j├Г┬║n 16 19:47 request/
drwxr-xr-x 2 lp bin 96 j├Г┬║n 16 19:47 receive/
-rw-r----- 1 lp sys 0 j├Г┬║n 16 21:15 default

I did not see any errors when installing, and no lpsched processes are running.
Fabian Brise├▒o
Esteemed Contributor

Re: Trouble with lpsched on HP-UX 11.31

Hello.

What about the rc.log?, anything there?
Knowledge is power.
Halldor Runar Haflidaso
Occasional Advisor

Re: Trouble with lpsched on HP-UX 11.31

Hi,


Start print spooler
Output from "/sbin/rc2.d/S720lp start":
----------------------------
/usr/sbin/lpsched: scheduler could not be started
EXIT CODE: 1
"/sbin/rc2.d/S720lp start" FAILED


Just that it failed to start.
Fabian Brise├▒o
Esteemed Contributor

Re: Trouble with lpsched on HP-UX 11.31

Halldor Runar Haflidaso
Occasional Advisor

Re: Trouble with lpsched on HP-UX 11.31

Hi,

Unfortunately the permissions seem to be in order on
everything, so that doesn't seem to be the issue.
Dennis Handly
Acclaimed Contributor

Re: Trouble with lpsched on HP-UX 11.31

>Unfortunately the permissions seem to be in order on everything, so that doesn't seem to be the issue.

You checked /usr/sbin/lpsched?
-r-sr-xr-x 1 root bin
Halldor Runar Haflidaso
Occasional Advisor

Re: Trouble with lpsched on HP-UX 11.31

Hi,

Yup:

-r-sr-xr-x 1 root bin 229748 feb 15 2007 /usr/sbin/lpsched*

Dennis Handly
Acclaimed Contributor
Solution

Re: Trouble with lpsched on HP-UX 11.31

>lpsched: scheduler could not be started

This error occurs when trying demonize lpsched when doing an initial read on the pipe. Or getting bad data from the pipe in the parent from the child.

Are you running out of processes?
It might be useful running tusc on lpsched(1m).