[cups.general] Queues shutting off

Paul Ortman portman at goshen.edu
Fri Feb 24 13:46:55 PST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Minatra, Pat H. wrote:
> The queues go down by themselves,

By "go down" do you mean they changed from state "enabled,accepting" to
"disabled,accepting"?  If so, the likely culprit is network transmission
errors or people power cycling the printer.

The hack that works was suggested by Mark Hefferman on the Pykota
mailing list earlier today:

> We've just got a cron job which 
> reenables queues every five minutes on the print server.  Here's the 
> script:
>
> #!/usr/bin/perl
> 
> use warnings;
> use strict;
> 
> my $out = `/usr/bin/lpstat -a -p`;
> (!$?) or die "Error calling lpstat: $!\n";
> while ($out =~ m/(\S+) (disabled|not accepting)/g) {
>     print "Accepting and enabling $1\n";
>     !system("/usr/sbin/accept $1") or warn "Error accepting $1: $!\n";
>     !system("/usr/bin/enable $1") or warn "Error enabling $1: $!\n";
> }


>  print jobs go to the wrong queues and

That's a new one to me from a CUPS point of view... I've always just
assumed the error was sitting in the seat in front of the computer.

- --
Paul Ortman

PGP Key: 55602C81
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFD/37Kfw8KGlVgLIERAl/wAKCL/ZLBC3vm72OumSogfpnUe7MfggCgjxmC
UlcSSN09HRFChOWQIN4Yups=
=DHvd
-----END PGP SIGNATURE-----





More information about the cups mailing list