From owner-freebsd-doc@freebsd.org Mon Jan 2 02:18:40 2017 Return-Path: Delivered-To: freebsd-doc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DA3DEC9A353 for ; Mon, 2 Jan 2017 02:18:40 +0000 (UTC) (envelope-from jens.redecker@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5619415BA for ; Mon, 2 Jan 2017 02:18:39 +0000 (UTC) (envelope-from jens.redecker@gmx.de) Received: from [192.168.1.9] ([217.190.140.78]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MW8PN-1bzPQI31AX-00XO2M; Mon, 02 Jan 2017 03:18:27 +0100 From: Jens Redecker Subject: cupsd.conf JobRetryLimit =0 not mentioned in documentation To: chess@chessgriffin.com, freebsd-doc@FreeBSD.org Message-ID: Date: Mon, 2 Jan 2017 03:18:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.5.1 MIME-Version: 1.0 X-Provags-ID: V03:K0:rv2asJ60esChrbQ17XokH7hLHMthuoBq2umMJtmmIBQgOwDnj0i f9LdpJau2F7tBk1Ocj04NYyKpM8QTXcoOvv4P10gsCxRdvXMRLaz0V7Z/R5wzUCBNU/jo/j dfRIIhAVFpAbdXeTjEkfSjNIHQDaa6082GpGWyrt+SPynJlu1sNUqSynQmn4PObQavqRjUa K8DZnMdn5I0cJumcqXerg== X-UI-Out-Filterresults: notjunk:1;V01:K0:1FUF8on6nEM=:cse4+Yi3zU4dkk6rKMhIt1 A8SJiGXaMX4eOMHjCOybYir7mtZwt40cScmnhVoVOx7dXNteWISxd/Veoo/EnOS3CitQNhWw+ mDdyWIerScijRkCX3TDEiRaY7s4Ki+BIrXfCioagia+aZcnlxgYaBHimuhpZK3fgUk8ghjiAT VsKlMOJBLD3FFcbf6vCvQ0mbwx1JSJNtcYKLLl1qJuVK57AGZ6qM8WHsHYvHa4qZO+2Ieu2Nt jfSg3tQTsMpkE9Cd5BqgetNIi/y6yxAmZHieU24ryAcA8zUKCejVXsBD4AdI0BlbN6w/IjC+c ovTYRSluE1vi535ymHrME711zWSSDHSyG/1YfPqOzJNNWIl0pZDxHF5r5YtHfwr3+fAA272YC 2FrvC9/d6SggtOt/uDIbVXEtcrPsSD5NRORYuChcIJZuswetJLsJTSNBEcB0O/omKCrxsI9q3 xrfJNt4IhGw7gN7nYFxa/oFHUYub7LjiqcsLdH2bjOFX/u+7mEQQZ9VVvMRDBLdgpITlA7TFR koR0QOWFdBUI0qTOzb5E7OSMulzirDbz6cdBAy+MYmomRrCBk8SDJ44J66/yWj3NwTJM4HDgc 4Dlh9+x4+FgpopkwM7Ut2uGtpPFCwY4E4PLGjQqt+5GZJvnpRaZH9zqwy4RO1QUcgmOJTxXxW TaO+bpbK0H4fSbG3EoLVc2WE0V0qEXj0rD4g2UtBfDpnTwK+UDfLk9UTe/r0fxE2o79Viu6I3 VtPazV6PWexOf9PQrtk/NGOJY+nUD1t90kyInDUi4Ozih8TGGvRchlFthqzQUq2yG+RPb22Mm N/Vprq4 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jan 2017 02:18:40 -0000 Hi there, the documentation of cupsd.conf https://www.freebsd.org/cgi/man.cgi?query=cupsd.conf mentions " *JobRetryLimit */count/ Specifies the number of retries that are done for jobs. This is typically used for fax queues but can also be used with normal print queues whose error policy is "retry-job" or "retry-current-job". The default is "5"." However i find it should be mentioned that setting it to "0" lets cups wait for an unlimited amount of time/retries. As it says starting from line 3145 of https://opensource.apple.com/source/cups/cups-327/cups/scheduler/job.c?txt if (job->tries > JobRetryLimit &&*JobRetryLimit > 0*) { /* * Too many tries... */ snprintf(buffer, sizeof(buffer), "Job aborted after %d unsuccessful attempts.", JobRetryLimit); job_state = IPP_JOB_ABORTED; message = buffer; ippSetString(job->attrs, &job->reasons, 0, "aborted-by-system"); } *else* { /* * Try again in N seconds... */ snprintf(buffer, sizeof(buffer), "Job held for %d seconds since it could not be sent.", JobRetryInterval); job->hold_until = time(NULL) + JobRetryInterval; job_state = IPP_JOB_HELD; message = buffer; ippSetString(job->attrs, &job->reasons, 0, "resources-are-not-ready"); } Regards Jens