[cups.general] Avoiding stopped jobs

Brian Kroth bpkroth at gmail.com
Thu Sep 23 05:24:28 PDT 2010


ALi <osatien at gmail.com> 2010-09-23 10:11:
> i think that the error is that i have puto errorpolicy in cupsd.conf
> as general ....
> and errorpolicy must be in printers.conf for each "queue"??????? how
> can i set it manually?
> 
> the printer has been created before putting the errorpolicy, so i
> think .... they have the other errorpolicy (stop-printer) and i must
> change it for all queues
> am I correct?
> 
> how to change it from command? any lpoptions command?
>
> thx

man lpadmin, look for error-policy

You could use something like this to loop over all queues.
for queue in `lpstat -a | awk '{ print $1 }'`; do
	# TODO: check that $queue is a reasonable value
	lpadmin -p $queue -o printer-error-policy=retry-job
done

> On Thu, Sep 23, 2010 at 10:01 AM, ALi <osatien at gmail.com> wrote:
> > How can i avoid stopped jobs?
> > i dont want that jobs become stopped because it should be
> > automatically printed, when the computer/printer starts.
> >
> > and it only fills the queue of cups.
> > Example I have set the ErrorPolicy to retry-job so .... the job should
> > never appear as stopped no? it must always retry and retry it without
> > being stopped.
> >
> > then, why i see stopped jobs on queue?
> >
> 
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <https://lists.cups.org/pipermail/cups/attachments/20100923/69002dfa/attachment.bin>


More information about the cups mailing list