1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
|
.\" $Id$
.\"
.\" HylaFAX Facsimile Software
.\"
.\" Copyright (c) 1990-1996 Sam Leffler
.\" Copyright (c) 1991-1996 Silicon Graphics, Inc.
.\" HylaFAX is a trademark of Silicon Graphics
.\"
.\" Permission to use, copy, modify, distribute, and sell this software and
.\" its documentation for any purpose is hereby granted without fee, provided
.\" that (i) the above copyright notices and this permission notice appear in
.\" all copies of the software and related documentation, and (ii) the names of
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
.\" publicity relating to the software without the specific, prior written
.\" permission of Sam Leffler and Silicon Graphics.
.\"
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
.\"
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
.\" OF THIS SOFTWARE.
.\"
.if n .po 0
.ds Fx \fIHyla\s-1FAX\s+1\fP
.TH FAXQCLEAN ${MANNUM1_8} "March 14, 1996"
.SH NAME
faxqclean \- \*(Fx queue cleaner process
.SH SYNOPSIS
.B ${SBIN}/faxqclean
[
.I options
]
.SH DESCRIPTION
.I faxqclean
is a program that processes completed \*(Fx
jobs and expunges unreferenced document files.
This program is intended to be invoked by
.IR cron (${MANNUM1_8})
on behalf of the super user (i.e. root) one or more times a day.
For example, the following crontab entry might be setup for root to run
.I faxqclean
each hour.
.sp .5
.nf
.ti +.2i
\s-1\fC0 * * * * ${SBIN}/faxqclean\fP\s+1
.fi
.PP
When
.I faxqclean
is run it scans the
.B doneq
subdirectory in the \*(Fx spooling area and process each job
according to the
.B doneop
field specified in the job description file; c.f.
.IR sendq (${MANNUM4_5}).
Jobs that are marked for removal are purged and references to documents
are removed.
Jobs that are marked for archival may be archived depending on the
options supplied on the command line.
.PP
After scanning for completed jobs
.I faxqclean
scans the
.B docq
subdirectory and builds up a table of document files.
Files that are not referenced by any job and that are older than
a specified threshold are removed.
.SH OPTIONS
.TP 10
.B \-a
Enable job archiving support.
.TP 10
.B \-A
This option forces archiving even if 'doneop' in
the queue file is not 'archive', i.e. even if the user submitted the job
without specifying the -A flag to sendfax
.TP 10
.BI \-j " secs"
Set the job age threshold (in seconds)
that controls how long jobs may reside in the
.B doneq
directory before being processed.
By default this value is 15 minutes (15*60 = 900 seconds).
.TP 10
.BI \-d " secs"
Set the document age threshold (in seconds)
that controls how long unreferenced files may reside in the
.B docq
directory before being removed.
By default this value is 1 hour (60*60 = 3600 seconds).
.TP 10
.B \-n
Do not carry out any work; just show what would be done.
This option is useful together with the
.B \-t
option for debugging.
.TP 10
.BI \-q " dir"
The specified directory is treated as the spooling area.
The default spooling area,
.IR ${SPOOL} ,
is defined at the time the software is built.
.TP 10
.B \-t
Trace in great detail exactly what
.I faxqclean
is doing.
Messages are sent to the standard output.
.TP 10
.B \-v
Print messages on the standard output about jobs removed or
archived and about document files removed.
.SH FILES
.ta \w'${SPOOL}/archive 'u
.nf
${SPOOL}/doneq directory to scan for completed jobs
${SPOOL}/docq directory to scan for unreferenced documents
${SPOOL}/archive directory where archived jobs are placed
.fi
.PP
Consult
.IR hylafax-server (${MANNUM4_5})
for a complete discussion of the structure and
content of the spooling area.
.SH "SEE ALSO"
.IR faxq (${MANNUM1_8}),
.IR hylafax-server (${MANNUM4_5}),
.IR sendq (${MANNUM4_5}),
.IR doneq (${MANNUM4_5}),
.IR archive (${MANNUM4_5}).
|