.\" EMail: cups-info@cups.org
.\" WWW: http://www.cups.org
.\"
-.TH cupsd.conf 5 "Common UNIX Printing System" "30 September 2005" "Easy Software Products"
+.TH cupsd.conf 5 "Common UNIX Printing System" "4 November 2005" "Easy Software Products"
.SH NAME
cupsd.conf \- server configuration file for cups
.SH DESCRIPTION
.br
Specifies the error log filename.
.TP 5
-FaxRetryInterval
-.br
-Specifies the interval between retries of fax jobs in seconds.
-.TP 5
-FaxRetryLimit
-.br
-Specifies the number of retries that are done for fax jobs.
-.TP 5
FileDevice
.br
Specifies whether the file pseudo-device can be used for new
.br
Includes the named file.
.TP 5
+JobRetryInterval
+.br
+Specifies the interval between retries of jobs in seconds.
+.TP 5
+JobRetryLimit
+.br
+Specifies the number of retries that are done for jobs.
+.TP 5
KeepAlive
.br
Specifies whether or not to support HTTP Keep-Alive.
{ "DefaultPolicy", &DefaultPolicy, CUPSD_VARTYPE_STRING },
{ "DocumentRoot", &DocumentRoot, CUPSD_VARTYPE_STRING },
{ "ErrorLog", &ErrorLog, CUPSD_VARTYPE_STRING },
- { "FaxRetryLimit", &FaxRetryLimit, CUPSD_VARTYPE_INTEGER },
- { "FaxRetryInterval", &FaxRetryInterval, CUPSD_VARTYPE_INTEGER },
{ "FileDevice", &FileDevice, CUPSD_VARTYPE_BOOLEAN },
{ "FilterLimit", &FilterLimit, CUPSD_VARTYPE_INTEGER },
{ "FilterNice", &FilterNice, CUPSD_VARTYPE_INTEGER },
{ "HideImplicitMembers", &HideImplicitMembers, CUPSD_VARTYPE_BOOLEAN },
{ "ImplicitClasses", &ImplicitClasses, CUPSD_VARTYPE_BOOLEAN },
{ "ImplicitAnyClasses", &ImplicitAnyClasses, CUPSD_VARTYPE_BOOLEAN },
+ { "JobRetryLimit", &JobRetryLimit, CUPSD_VARTYPE_INTEGER },
+ { "JobRetryInterval", &JobRetryInterval, CUPSD_VARTYPE_INTEGER },
{ "KeepAliveTimeout", &KeepAliveTimeout, CUPSD_VARTYPE_INTEGER },
{ "KeepAlive", &KeepAlive, CUPSD_VARTYPE_BOOLEAN },
{ "LimitRequestBody", &MaxRequestSize, CUPSD_VARTYPE_INTEGER },
ConfigFilePerm = 0640;
DefaultAuthType = AUTH_BASIC;
- FaxRetryLimit = 5;
- FaxRetryInterval = 300;
+ JobRetryLimit = 5;
+ JobRetryInterval = 300;
FileDevice = FALSE;
FilterLevel = 0;
FilterLimit = 0;
return (0);
}
}
+ else if (!strcasecmp(line, "FaxRetryInterval"))
+ {
+ if (value)
+ {
+ JobRetryInterval = atoi(value);
+ cupsdLogMessage(CUPSD_LOG_WARN,
+ "FaxRetryInterval is deprecated; use "
+ "JobRetryInterval on line %d.", linenum);
+ }
+ else
+ {
+ cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d.", linenum);
+ return (0);
+ }
+ }
+ else if (!strcasecmp(line, "FaxRetryLimit"))
+ {
+ if (value)
+ {
+ JobRetryLimit = atoi(value);
+ cupsdLogMessage(CUPSD_LOG_WARN,
+ "FaxRetryLimit is deprecated; use "
+ "JobRetryLimit on line %d.", linenum);
+ }
+ else
+ {
+ cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d.", linenum);
+ return (0);
+ }
+ }
else if (!strcasecmp(line, "Port") || !strcasecmp(line, "Listen")
#ifdef HAVE_SSL
|| !strcasecmp(line, "SSLPort") || !strcasecmp(line, "SSLListen")
job->tries ++;
- if (job->tries >= FaxRetryLimit)
+ if (job->tries >= JobRetryLimit)
{
/*
* Too many tries...
cupsdLogMessage(CUPSD_LOG_ERROR,
"Canceling job %d since it could not be sent after %d tries.",
- job->id, FaxRetryLimit);
+ job->id, JobRetryLimit);
cupsdAddEvent(CUPSD_EVENT_JOB_COMPLETED, job->printer, job,
"Job cancelled since it could not be sent after %d tries.",
- FaxRetryLimit);
+ JobRetryLimit);
cupsdCancelJob(job, 0);
}
* Try again in N seconds...
*/
- set_hold_until(job, time(NULL) + FaxRetryInterval);
+ set_hold_until(job, time(NULL) + JobRetryInterval);
}
}
else if (!strcmp(printer->error_policy, "abort-job"))