Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upErrorPolicy should have a global setting. #1871
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
CUPS.org User: mike Marked for implementation in CUPS 1.3... |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
CUPS.org User: mike Fixed in Subversion repository. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
michaelrsweet
Apr 2, 2007
Collaborator
"str1871.patch":
Index: doc/help/ref-cupsd-conf.html
--- doc/help/ref-cupsd-conf.html (revision 6431)
+++ doc/help/ref-cupsd-conf.html (working copy)
@@ -1078,6 +1078,41 @@
information to the system log instead of a plain file.
+
CUPS 1.3ErrorPolicy
+
+
Examples
+
+
+ErrorPolicy abort-job
+ErrorPolicy retry-job
+ErrorPolicy stop-printer
+
+
+
Description
+
+
The ErrorPolicy directive defines the default policy that
+is used when a backend is unable to send a print job to the
+printer.
+
+
The following values are supported:
+
+
abort-job- Abort the job and proceed- with the next job in the queue
retry-job- Retry the job after waiting- for N seconds; the cupsd.conf <A
- HREF="#JobRetryInterval">
JobRetryInterval - directive controls the value of N
stop-printer- Stop the printer and keep- the job for future printing; this is the default
- value
+
+
+
+
CUPS 1.1.18FileDevice
Examples
Index: scheduler/conf.c
--- scheduler/conf.c (revision 6431)
+++ scheduler/conf.c (working copy)
@@ -116,6 +116,7 @@
{ "DefaultShared", &DefaultShared, CUPSD_VARTYPE_BOOLEAN },
{ "DocumentRoot", &DocumentRoot, CUPSD_VARTYPE_STRING },
{ "ErrorLog", &ErrorLog, CUPSD_VARTYPE_STRING },
- { "ErrorPolicy", &ErrorPolicy, CUPSD_VARTYPE_STRING },
{ "FileDevice", &FileDevice, CUPSD_VARTYPE_BOOLEAN },
{ "FilterLimit", &FilterLimit, CUPSD_VARTYPE_INTEGER },
{ "FilterNice", &FilterNice, CUPSD_VARTYPE_INTEGER },
@@ -431,6 +432,8 @@
cupsdClearString(&BrowseLocalOptions);
cupsdClearString(&BrowseRemoteOptions); - cupsdSetString(&ErrorPolicy, "stop-printer");
#ifdef HAVE_LDAP
cupsdClearString(&BrowseLDAPBindDN);
cupsdClearString(&BrowseLDAPDN);
Index: scheduler/conf.h
--- scheduler/conf.h (revision 6431)
+++ scheduler/conf.h (working copy)
@@ -97,6 +97,8 @@
/* Default charset /
*DefaultLocale VALUE(NULL),
/ Default locale */
-
*ErrorPolicy VALUE(NULL), -
/* Default printer-error-policy */ *RIPCache VALUE(NULL), /* Amount of memory for RIPs */ *TempDir VALUE(NULL),Index: scheduler/printers.c
--- scheduler/printers.c (revision 6433)
+++ scheduler/printers.c (working copy)
@@ -124,7 +124,7 @@
cupsdSetString(&p->job_sheets[0], "none");
cupsdSetString(&p->job_sheets[1], "none"); -
cupsdSetString(&p->error_policy, "stop-printer");
-
cupsdSetString(&p->error_policy, ErrorPolicy);
cupsdSetString(&p->op_policy, DefaultPolicy);
p->op_policy_ptr = DefaultPolicyPtr;
|
"str1871.patch": Index: doc/help/ref-cupsd-conf.html--- doc/help/ref-cupsd-conf.html (revision 6431) + CUPS 1.3ErrorPolicy+ + Examples+ +
+ + Description+ + The + + The following values are supported: + +
+ + + + CUPS 1.1.18FileDeviceExamplesIndex: scheduler/conf.c--- scheduler/conf.c (revision 6431)
#ifdef HAVE_LDAP Index: scheduler/conf.h--- scheduler/conf.h (revision 6431)
p->op_policy_ptr = DefaultPolicyPtr; |
michaelrsweet commentedJul 28, 2006
Version: 1.3-feature
CUPS.org User: timbers2k
It would be benificial if ErrorPolicy had a global setting in cups.conf. Currently this must be set for each printer if you wish to change from the default setting. We run a shop with 150+ printers and have more than one person adding new printers.