> From [EMAIL PROTECTED] Fri Dec 28 08:34:51 2001
> Date: Fri, 28 Dec 2001 10:36:10 -0500
> From: Clint Fast <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: files not being removed, etc... Please help...
>
>
> We have implemented a faxserver using LPRng. The faxing is currently
> done using a printfilter and has been working quite well on another
> machine for some time.
>
> We started developing a problem in which LPRng would "drop"
> faxes/printjobs. I.e. We could send 2500 "faxes/printjobs" to a
> specific queue, and we would lose a percentage of them. We had since
> put in enough "checking" so that the queue couldn't really get
> overloaded too badly.
>
> I am now trying to implement a new faxserver (using LPRng 3.8.4 and SuSE
> 7.3), but I have run into a couple of problems.
>
> At first, I started receiving Open_gdbm errors (using the stock LPRng
> 3.7.4 with SuSE), and have since stepped up to 3.8.4 building it
> myself. The Open_gdbm errors have disappeared (from what I can tell,
> I'm not 100% sure of this because another problem has made itself more
> apparent). I also increased /proc/sys/fs/file-max to 16384.
Yes, cause I ripped the code for this out.
>
> The problem now is that if I send a single/couple prints to a queue,
> they will process through the queue (most of the time), but will still
> stay in the queue and remark themselves as "done". For example:
>
> Printer: fax@new-faxserver
> Queue: no printable jobs in queue
> Server: no server active
> Status: job 'cfA733new-faxserver.alliedbuilding.com' save at
> 10:02:32.249
> Rank Owner/ID Class Job Files
> Size Time
> done root A 733 /tmp/mark_statements.
> 3690 10:02:32
>
> Now, if I sent 100 of these at the same time, they eventually go away,
> save for a couple.
> Is there a way I can disable this "done" message? BTW, it also keeps
> the cf/hf/df files in the queue as well.
This is to make Samba and other systems (such as the new IPP protocol
support) happy, cause they want to see what happened to the jobs
that they submitted.
>From the 'CHANGES' file:
Version LPRng-3.8.2 - Mon Dec 3 12:26:52 PST 2001
MAJOR CONFIGURATION CHANGE:
LPRng can retain status of last N completed jobs
configure --with-done_jobs=N
- set done_jobs value, default 1
configure --with-done_jobs_max_age =N
- set done_jobs_max_age value, default = 0 (no expiry)
Or in the printcap/lpd.conf:
:done_jobs=1
:done_jobs_max_age=1
Example:
Printer: t1@h110 'Test Printer 1'
Queue: no printable jobs in queue
Server: no server active
Status: job 'cfA231h110.private' removed at 18:25:36.281
Rank Owner/ID Class Job Files Size Time
done papowell A 278 /tmp/hi 3 18:25:31
Controlled by:
:save_on_error - all jobs with error saved, status not removed
:save_when_done - all jobs with no error saved, status not removed
:done_jobs=N - last N jobs completed (error or no error) saved
:done_jobs_max_age=N - jobs with status older than N seconds removed
This is best explained by:
On job completion:
if( (no error && save_when_done)
|| (error && save_on_error)
|| done_jobs > 0 || done_jobs_max_age > 0 ){
do not remove job
}
When queue updated:
if( !(save_on_error || save_when_done) ){
while( done_jobs_max_age >= 0
&& the time since completion of oldest done job > done_jobs_max_age ){
remove the oldest done job
}
while( done_jobs >= 0 && total number of done jobs > done_jobs ){
remove the oldest done job
}
}
You can set:
fax:done_jobs=0:done_jobs_max_age=0
to disable this operation.
Actually, most folks LIKE this, otherwise I would not have put it in.
>
> I know there is another problem as well, maybe still related to the
> Open_gdbm or otherwise, but this one is bothering me pretty badly.
>
> Also, the "fax" queue hands off the printjobs to 17 other fax devices to
> actually do the work. It decides which queue to put it in (i.e. less
> full, or same fax number, or print it, or e-mail as a pdf).
>
> Thanks,
>
> --Clint Fast
>
> PS- Here is an excerpt of the /etc/printcap
> ===
> fax:\
> :lp=/dev/null:\
> :br#57600:\
> :sd=/var/spool/lpd/fax:\
> :mx#0:\
> :sh:\
> :if=/usr/lib/filters/fax_server_printfilter:
> fax1:\
> :lp=/dev/null:\
> :br#57600:\
> :sd=/var/spool/lpd/fax:\
> :mx#0:\
> :sh:\
> :if=/usr/lib/filters/fax_client_printfilter:
> fax2:\... and on...'
>
> the fax_server_printfilter does a little magic, but in the end runs a
> "cat <printjob> | lpr -Pfax<NN> -Z...". If you'd like to see them, I
> can post them.
>
> -----------------------------------------------------------------------------
> YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
> The address you post from MUST be your subscription address
>
> If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
> or lprng-digest-requests) with the word 'help' in the body. For the impatient,
> to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
> with: | example:
> subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
> unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
>
> If you have major problems, send email to [EMAIL PROTECTED] with the word
> LPRNGLIST in the SUBJECT line.
> -----------------------------------------------------------------------------
>
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------