DragonFly On-Line Manual Pages
CLEARXS(1) DragonFly General Commands Manual CLEARXS(1)
NAME
clearxs - Daily update for the xs-httpd counter file
SYNOPSIS
clearxs [-d | -m | -T | -x yyyymmdd]
DESCRIPTION
`clearxs' is a program that you should install in a cron(1) table. What
it does is clear some of the fields in the WWW counter file every night.
This is so that the counter can assume three values: a day counter, a
month counter and a total counter. This program resets the day counter to
0 every day and the month counter to 0 every first of the month.
The option controls which counters should be cleared:
-d This makes the program clear all the day counters, but leaves the
other counters as they were. This option should be used every
night.
-m This makes the program clear the day and the month counter. The
total counter is left as it was. This should be run by cron every
first of the month.
-T Clears all the counters. Do not use...
-x yyyymmdd
Expunge counters that have not been used since the given day.
This will remove historical data from disk - use with care.
EXAMPLES
The following can be used as a crontab(5) entry:
0 0 2-31 * * root clearxs -d
0 0 1 * * root clearxs -m
DIAGNOSTICS
The clearxs utility exits 0 on success, and >0 if an error occurs.
SEE ALSO
httpd(1), readxs(1), httpd_ssi(7)
The project homepage: http://www.xs-httpd.org/
xs-httpd/3.5 March 26, 1996 xs-httpd/3.5