1834342 Members
1883 Online
110066 Solutions
New Discussion

Re: print subsystem

 
Rene_17
Regular Advisor

print subsystem

how to shutdown the print subsystem on HPUX11i ?
16 REPLIES 16
Mark Grant
Honored Contributor

Re: print subsystem


I think you are after the "lpshut" command.

Never preceed any demonstration with anything more predictive than "watch this"
Zigor Buruaga
Esteemed Contributor

Re: print subsystem

Hi,

"lpshut" stops the LP scheduler.
"lpsched" to start it again.

Kind regards,
Zigor
Robert-Jan Goossens
Honored Contributor

Re: print subsystem

Hi Rene,

# /sbin/init.d/lp stop

# /sbin/init.d/lp start

Robert-Jan.
T G Manikandan
Honored Contributor

Re: print subsystem

Just do

#/sbin/init.d/lp stop

Then change your /etc/rc.config.d/lp

file from '1' to '0'


THanks
Rene_17
Regular Advisor

Re: print subsystem

the scheduler is not running, but the print subsystem !!!
Mark Grant
Honored Contributor

Re: print subsystem

The scheduler IS the print system. You stop that and nothing will print.

On the other hand, if you want the queuing to stop too, you'll have to "reject" each printer queue with the "reject" command

reject -r "A good reason for why I have done this" printer
Never preceed any demonstration with anything more predictive than "watch this"
Rene_17
Regular Advisor

Re: print subsystem

my problem is that i want to install a new printerqueue with the lexmark software.
The queue can not be installed, because the print subsystem can??t be shutdown by the konfigurationtool !

Error: Unable to shutdown the print subsystem.
...

Rene_17
Regular Advisor

Re: print subsystem

I shutdown the scheduler with:

lpshut and sbin/init.d/lp stop

but the errormessage don??t vanish !
Bhuvaneswari Selvaraj
Valued Contributor

Re: print subsystem

I guess the software is not able to stop the scheduler, may be because there may be some jobs running. Try lpstat at the command line, this will give you the list of pending jobs. Just cancel them by giving

$ cancel job id (this u got from lpstat),

then do a
$ lpshut

and then install the same.
Mark Grant
Honored Contributor

Re: print subsystem

I would guess that is is trying to issue an "lpshut" as that's what most will do. However it is very difficult to guess why it is failing to achieve that.

Three things that come to mind are,

1) are you installing the software as root as only root can shut down the scheduler

2) Is the scheduler already shutdown and therefore the software fails trying to do it again

3) Is the software expecting lpshut to be in /usr/lib which for some unknown reason is where a lot of unix systems put it (you can check this with a symbolic link from /usr/sbin/lpshut to /usr/lib/lpshut

Just some thoughts!
Never preceed any demonstration with anything more predictive than "watch this"
Rene_17
Regular Advisor

Re: print subsystem

Nothing is running, but the errormessage didn??t vanish !!!
Umapathy S
Honored Contributor

Re: print subsystem

Rene,
What does /var/adm/lp/log say?
-Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Zigor Buruaga
Esteemed Contributor

Re: print subsystem

Hi,

Check also "/var/adm/syslog/syslog.log".
Is it possible that the software wants to shutdown the machine, not the spooler?

Kind regards,
Zigor
Mark Grant
Honored Contributor

Re: print subsystem

Rene,

If the scheduler is NOT running then "lpshut" actually returns an error if you try to shut it down again so maybe your software is failing because the print system is ALREADY down.

Try starting everything up first!
Never preceed any demonstration with anything more predictive than "watch this"
Bhuvaneswari Selvaraj
Valued Contributor

Re: print subsystem

Hi,

If the spooler is not running, just start it and try again.

If that also, does not work, may be you need to look in to the /var/adm/sw/* logs... Do they show any error message?
Rene_17
Regular Advisor

Re: print subsystem

I had shutdown to init 1 and add the new queue
and then it works !!!!

Thanks for your attention