Operating System - HP-UX
1837976 Members
2555 Online
110124 Solutions
New Discussion

Re: scheduler is not running

 
SOLVED
Go to solution

scheduler is not running

I run lpsched and checked the status by running lpstat -t. And it reported scheduler is not running.

Pls advice!!
21 REPLIES 21
federico_3
Honored Contributor

Re: scheduler is not running


Hi,

if the scheduler won't start up when you execute lpsched command, check to see if the SCHEDLOCK file exists in the /var/spool/lp directory. If it exists , remove it and try again to start it.

to check if it has been started type:

ps -ef| grep sched


federico
federico_3
Honored Contributor

Re: scheduler is not running

sorry.... i have responded but the number of replies is 0..



federico
Ralph Grothe
Honored Contributor

Re: scheduler is not running

A shorter check if scheduler runs:

lpstat -r
Madness, thy name is system administration

Re: scheduler is not running

Tks

There is no SCHEDLOCK in /var/spool/lp and also when i
ps -ef|grep sched
The response
root 20 0 0 07:34:06 ? 0:00 supsched

and the problem is still.

When i run lpsched the immediate response is
scheduler is running

But when i check it with lpstat -t the response is as before scheduler is not running

federico_3
Honored Contributor

Re: scheduler is not running

and FIFO file under the same directory?
It there is remove it and try to restart the scheduler


federico
federico_3
Honored Contributor

Re: scheduler is not running

Check also the file /var/spool/lp/log to see if there are any problems!



Federico
Andreas Voss
Honored Contributor

Re: scheduler is not running

Hi,

start with: lpsched -v
and then look in /var/adm/lp/log for messages of lpsched.

Regards

Re: scheduler is not running

There isn't any FIFO

and for lpsched -v. the log is

lpsched: can't open output queue file
FIFO: Destinations --
FIFO: iss_sup: p not enabled not busy /dev/null
FIFO: Printers --
FIFO: iss_sup pid and id unknown
FIFO: Classes --
***** STOPPED Oct 31 14:23 *****


Andreas Voss
Honored Contributor

Re: scheduler is not running

Hi,

check permission/user of /var/spool/lp
should be:
drwxr-xr-x 4 lp bin 1024 Oct 31 08:17

Regards

Re: scheduler is not running

HI

The permission is as you mentioned

federico_3
Honored Contributor

Re: scheduler is not running

Have you tried to define a new printer? if yes, remove all the files connected to it ( find / -name "name printer" ) because there could be somthing that blocks the scheduler.


federico

Andreas Voss
Honored Contributor

Re: scheduler is not running

Hi,

do an lpshut and then look with ps -fulp to see if there are any lp processes left. If yes kill them (kill or kill -9 )

Regards

Re: scheduler is not running

Hi there

I removed all printer names from all directories found. Still the problem persists.

I trie also lpshut . The imediate response is scheduler not running. and ps -fulp results no lp process.

Help
Bruce Laughlin
Frequent Advisor
Solution

Re: scheduler is not running

Hi,

Here's some things to check (done on an 11.00 system):

1) mode and ownership of outputq file
# ll /var/spool/lp/outputq
-rw-r--r-- 1 lp sys 4183200 Sep 29 16:35 /var/spool/lp/outputq
(if outputq doesn't exist, create it, making sure that mode and ownership are correct)

2) mode and ownership of lpsched
# ll /usr/sbin/lpsched
-r-sr-xr-x 1 root bin 57344 Aug 9 1999 /usr/sbin/lpsched

(If you need to change the mode, it's:
chmod 4555 /usr/sbin/lpsched)

3) Once again, permissions of everything down to /var/spool/lp:

# ll -d /
drwxr-xr-x 31 root root 2048 Oct 30 13:54 /
# ll -d /var
dr-xr-xr-x 20 bin bin 1024 Oct 3 13:04 /var
# ll -d /var/spool
drwxr-xr-x 14 root sys 1024 Oct 13 10:11 /var/spool
# ll -d /var/spool/lp
drwxr-xr-x 4 lp bin 1024 Oct 27 07:49 /var/spool/lp

I hope this helps,
Bruce

Re: scheduler is not running

Thank you all and specially Bruce Laughlin . It was the permission of the outputq.

How could i remove the queues which i removed from all directories. They keep coming on the lpstat -t result.

Thanks
Andreas Voss
Honored Contributor

Re: scheduler is not running

Hi,

for all queues do:
cancel -e

Regards

Re: scheduler is not running

Hi

I wanted to remove the printer name gss01 , gss and iss_sup.

But it keeps on saying they are non-existant.
they appear on lpstat -t as follows

scheduler is running
no system default destination
device for iss_sup: /dev/null
gss01 accepting requests since Oct 27 10:31
gss accepting requests since Oct 27 10:42
iss_sup accepting requests since Oct 31 07:54
iss_sup not accepting requests since Oct 31 18:13 -
new destination
printer gss01 is idle. enabled since Oct 30 18:10
fence priority : 0
printer gss is idle. enabled since Oct 27 10:42
fence priority : 0
printer iss_sup is idle. enabled since Oct 31 07:54
fence priority : 0
printer iss_sup disabled since Oct 31 18:13 -
new printer
fence priority : 0
lpstat: execlp failed
no entries


tks
Andreas Voss
Honored Contributor

Re: scheduler is not running

Hi,

to remove do this:
lpshut
lpadmin -xgss01
lpadmin -xgss
lpadmin -xiss_sup
lpsched

Regards

Re: scheduler is not running

Hi

I have done that. For your info here is what i did

/var/spool/lp lpadmin -xgss
lpadmin: destination "gss" non-existent
root@imisaa1:/var/spool/lp lpadmin -xgss01
lpadmin: destination "gss01" non-existent
root@imisaa1:/var/spool/lp lpadmin -xiss_sup
root@imisaa1:/var/spool/lp lpadmin -xiss_sup
lpadmin: destination "iss_sup" non-existent
root@imisaa1:/var/spool/lp lpsched
scheduler is running

root@imisaa1:/var/spool/lp lpstat -t
scheduler is running
no system default destination
gss01 accepting requests since Oct 27 10:31
gss accepting requests since Oct 27 10:42
printer gss01 is idle. enabled since Oct 30 18:10
fence priority : 0
printer gss is idle. enabled since Oct 27 10:42
fence priority : 0
lpstat: execlp failed
no entries

tks
Andreas Voss
Honored Contributor

Re: scheduler is not running

Hi,
when you want to remove ALL queues you could do:
lpshut
cd /var/spool/lp
mkdir old # just for save
mv pstatus qstatus outputq old
lpsched

Now every lp information is lost and you can start from scratch.

Re: scheduler is not running

Thank you Andreas !!

You have been of great help