New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ErrorPolicy should have a global setting. #1871

Closed
michaelrsweet opened this Issue Jul 28, 2006 · 3 comments

Comments

Projects
None yet
1 participant
@michaelrsweet
Collaborator

michaelrsweet commented Jul 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.

@michaelrsweet

This comment has been minimized.

Show comment
Hide comment
@michaelrsweet

michaelrsweet Aug 3, 2006

Collaborator

CUPS.org User: mike

Marked for implementation in CUPS 1.3...

Collaborator

michaelrsweet commented Aug 3, 2006

CUPS.org User: mike

Marked for implementation in CUPS 1.3...

@michaelrsweet

This comment has been minimized.

Show comment
Hide comment
@michaelrsweet

michaelrsweet Apr 2, 2007

Collaborator

CUPS.org User: mike

Fixed in Subversion repository.

Collaborator

michaelrsweet commented Apr 2, 2007

CUPS.org User: mike

Fixed in Subversion repository.

@michaelrsweet

This comment has been minimized.

Show comment
Hide comment
@michaelrsweet

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;

Collaborator

michaelrsweet commented Apr 2, 2007

"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;

@michaelrsweet michaelrsweet added this to the Stable milestone Mar 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment