summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-08-09 18:11:47 +0200
committerDidier Raboud <odyx@debian.org>2018-06-08 14:41:03 +0200
commit0483b918940fd5f63975fbc6069e14276e31b19f (patch)
treef04b9865137f0228d65c253690a62188c88eb8d6
parent762841e50eafdd7e5083262308034ead54442aea (diff)
Set default job error policy to "retry-job", since it is less
confusing and a better default on most machines. . Amend documentation accordingly. Author: Didier Raboud <odyx@debian.org> Origin: vendor Last-Update: 2016-07-03 Patch-Name: cups-set-default-error-policy-retry-job.patch
-rw-r--r--doc/help/man-cupsd.conf.html4
-rw-r--r--man/cupsd.conf.man.in4
-rw-r--r--scheduler/conf.c6
3 files changed, 7 insertions, 7 deletions
diff --git a/doc/help/man-cupsd.conf.html b/doc/help/man-cupsd.conf.html
index 943895387..6046e907b 100644
--- a/doc/help/man-cupsd.conf.html
+++ b/doc/help/man-cupsd.conf.html
@@ -91,9 +91,9 @@ The default value is "30".
<dt><b>ErrorPolicy retry-current-job</b>
<dd style="margin-left: 5.0em">Specifies that a failed print job should be retried immediately unless otherwise specified for the printer.
<dt><b>ErrorPolicy retry-job</b>
-<dd style="margin-left: 5.0em">Specifies that a failed print job should be retried at a later time unless otherwise specified for the printer.
+<dd style="margin-left: 5.0em">Specifies that a failed print job should be retried at a later time unless otherwise specified for the printer. The 'retry-job' error policy is the default.
<dt><b>ErrorPolicy stop-printer</b>
-<dd style="margin-left: 5.0em">Specifies that a failed print job should stop the printer unless otherwise specified for the printer. The 'stop-printer' error policy is the default.
+<dd style="margin-left: 5.0em">Specifies that a failed print job should stop the printer unless otherwise specified for the printer.
<dt><a name="FilterLimit"></a><b>FilterLimit </b><i>limit</i>
<dd style="margin-left: 5.0em">Specifies the maximum cost of filters that are run concurrently, which can be used to minimize disk, memory, and CPU resource problems.
A limit of 0 disables filter limiting.
diff --git a/man/cupsd.conf.man.in b/man/cupsd.conf.man.in
index 6cec33969..df2b5bbd5 100644
--- a/man/cupsd.conf.man.in
+++ b/man/cupsd.conf.man.in
@@ -136,10 +136,10 @@ Specifies that a failed print job should be aborted (discarded) unless otherwise
Specifies that a failed print job should be retried immediately unless otherwise specified for the printer.
.TP 5
\fBErrorPolicy retry-job\fR
-Specifies that a failed print job should be retried at a later time unless otherwise specified for the printer.
+Specifies that a failed print job should be retried at a later time unless otherwise specified for the printer. The 'retry-job' error policy is the default.
.TP 5
\fBErrorPolicy stop-printer\fR
-Specifies that a failed print job should stop the printer unless otherwise specified for the printer. The 'stop-printer' error policy is the default.
+Specifies that a failed print job should stop the printer unless otherwise specified for the printer.
.\"#FilterLimit
.TP 5
\fBFilterLimit \fIlimit\fR
diff --git a/scheduler/conf.c b/scheduler/conf.c
index 755243170..aae7443de 100644
--- a/scheduler/conf.c
+++ b/scheduler/conf.c
@@ -751,7 +751,7 @@ cupsdReadConfiguration(void)
cupsdSetString(&LPDConfigFile, CUPS_DEFAULT_LPD_CONFIG_FILE);
cupsdSetString(&SMBConfigFile, CUPS_DEFAULT_SMB_CONFIG_FILE);
- cupsdSetString(&ErrorPolicy, "stop-printer");
+ cupsdSetString(&ErrorPolicy, "retry-job");
JobHistory = DEFAULT_HISTORY;
JobFiles = DEFAULT_FILES;
@@ -1232,8 +1232,8 @@ cupsdReadConfiguration(void)
strcmp(ErrorPolicy, "retry-job") &&
strcmp(ErrorPolicy, "stop-printer"))
{
- cupsdLogMessage(CUPSD_LOG_ALERT, "Invalid ErrorPolicy \"%s\", resetting to \"stop-printer\".", ErrorPolicy);
- cupsdSetString(&ErrorPolicy, "stop-printer");
+ cupsdLogMessage(CUPSD_LOG_ALERT, "Invalid ErrorPolicy \"%s\", resetting to \"retry-job\".", ErrorPolicy);
+ cupsdSetString(&ErrorPolicy, "retry-job");
}
/*