https://bugzilla.novell.com/show_bug.cgi?id=463322
User jsmeix@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=463322#c2
Johannes Meixner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |jsmeix@novell.com
Resolution| |INVALID
--- Comment #2 from Johannes Meixner 2009-02-17 07:46:50 MST ---
SuSEconfig.texlive is perfectly correctly implemented:
-----------------------------------------------------------------
if type -p lpoptions &>/dev/null && lpstat -r &>/dev/null ; then
...
lpopt=($(lpoptions -l 2> /dev/null))
-----------------------------------------------------------------
First it tests 100% correctly via "lpstat -r" if the CUPS server
is accessible and only if yes it runs the "lpoptions" query.
I can reproduce it when a CUPS server is used which does
not respond at all e.g. because a firewall just drops
any communication which leads long timeouts, for example:
------------------------------------------------------------------
user@host$ export CUPS_SERVER=www.novell.com
user@host$ time lpstat -r
lpstat: Unable to connect to server
real 3m9.010s
user 0m0.012s
sys 0m0.000s
------------------------------------------------------------------
The issue does not happen in general but only
when a non-responsive CUPS server is set
and as far as I see the worst case is that one has to wait
some minutes until certain network timeouts had passed.
By default the CUPS server is on "localhost" and this one
works fast regardless if cupsd is running or not:
------------------------------------------------------------------
user@host$ time lpstat -h localhost -r
scheduler is running
real 0m0.010s
user 0m0.000s
sys 0m0.008s
[now with stopped cupsd:]
user@host$ time lpstat -h localhost -r
lpstat: Unable to connect to server
real 0m0.010s
user 0m0.008s
sys 0m0.004s
------------------------------------------------------------------
Therefore the solution is to use a working CUPS server.
You may use in the YaST printer setup "Printing via Network".
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.