uudemon.cleanup(1M) uudemon.cleanup(1M)
NAME
uudemon.cleanup - cleans up files in the uucp spool
directory
SYNOPSIS
uudemon.cleanup
DESCRIPTION
uudemon.cleanup is a shell script that is usually run at
least once a day by cron to clean up the /usr/spool/uucp
spool directory if ct, cu, or uucp is in use on your system.
Each time uudemon.cleanup is executed, these log files,
which are in the /usr/spool/uucp/.Admin directory, are moved
to the /usr/spool/uucp/.Old directory:
account (if it exists)Foreign
audit perflog (if it exists)
command security
errors xferstats
All the files retain their names except for account and
security, which are named so that multiple files can be
saved. The former account file is named Old-acct-number and
the former security file is named Old-sec-number, where the
value of number is a number from 1 to 3.
After the files are moved, uudemon.cleanup creates empty
versions of the same files in the /usr/spool/uucp/.Admin
directory to handle future logging.
The uucico, uuxqt, uux, and uucp log files in the directory
/usr/spool/uucp/.Log are merged into one log file, which is
named Old-Log-number, where the value of number is a number
from 1 to 3.
After all log files have been saved and new versions
created, uudemon.cleanup runs the uucleanup command, which
removes these files if they meet the specified age
criterion:
.D* 7 days old or older
.C* 7 days old or older
.X* 2 days old or older
In addition, uucleanup sends a warning message to any user
who has generated .C files that are one day old or older.
For each action, uucleanup logs a message to the
/usr/spool/uucp/.Admin/uucleanup file.
When uucleanup is done, uudemon.cleanup removes error and
warning messages from /usr/spool/uucp/.Admin/uucleanup,
January 1992 1
uudemon.cleanup(1M) uudemon.cleanup(1M)
mails the error messages to the uucp administrator, moves
/usr/spool/uucp/.Admin/uucleanup to the /usr/spool/uucp/.Old
directory, and re-creates an empty
/usr/spool/uucp/.Admin/uucleanup file.
In addition, uudemon.cleanup removes directories that are
deeper than three levels within the uucp spool directory
hierarchy because uucp doesn't create a directory hierarchy
that is deeper than three levels.
Any files named core are reported to the uucp administrator.
All empty directories are removed from within the
/usr/spool/uucp and /usr/spool/uucppublic directories.
Files in these directories are removed if they meet the
specified age criterion:
/usr/spool/uucppublic more than 30 days old
/usr/spool/uucp/.Sequencemore than 30 days old
/usr/spool/uucp/.Corrupt more than 10 days old
/usr/spool/uucp/.Workspacemore than 1 day old
/usr/spool/uucp/.Status more than 2 days old
The uudemon.cleanup script removes any temporary lock files
(that is, files beginning with LTMP) from the
/usr/spool/locks directory.
Finally, uudemon.cleanup removes any mail that has been sent
to nuucp.
A summary of the status of the /usr/spool/uucp directory is
mailed to the uucp administrator.
You should create an entry in the file
/usr/spool/cron/crontabs/root to call uudemon.cleanup once a
day. Here is an entry that runs uudemon.cleanup at 11:45
P.M. every day:
45 23 * * * /usr/lib/uucp/uudemon.cleanup > /dev/null 2>&1
FILES
/usr/lib/uucp/uudemon.cleanup
Executable file
/usr/spool/uucp
Directory of uucp work files
/usr/spool/uucppublic
Directory of uucp public files
SEE ALSO
uucleanup(1M)
2 January 1992
uustat(1C) in A/UX Command Reference
January 1992 3