[BACK]Return to daily.5 CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / man / man5

File: [cvs.NetBSD.org] / src / share / man / man5 / daily.5 (download)

Revision 1.6, Mon Jul 30 17:29:00 2012 UTC (11 years, 8 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Changes since 1.5: +5 -4 lines

New sentence, new line. Use more markup.

.\"	$NetBSD: daily.5,v 1.6 2012/07/30 17:29:00 wiz Exp $
.\"
.\" Copyright (c) 1996 Matthew R. Green
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd July 30, 2012
.Dt DAILY 5
.Os
.Sh NAME
.Nm daily ,
.Nm daily.conf
.Nd daily maintenance
.Sh DESCRIPTION
The
.Pa /etc/daily
script is run, by default, every night on a
.Nx
system.
The
.Pa /etc/daily.conf
file specifies which of the standard
.Nm
services are performed.
.Pp
The variables described below can be set to
.Dq YES
or
.Dq NO
in the
.Pa /etc/daily.conf
file.
Most default to
.Dq YES ,
but not all.
Check the
.Pa /etc/defaults/daily.conf
file if you are in doubt.
(Note that you should never edit
.Pa /etc/defaults/daily.conf
directly, as it is often replaced during system upgrades.)
.Bl -tag -width fetch_pkg_vulnerabilities
.It Sy find_core
This runs
.Xr find 1
over the entire local filesystem, looking for core files.
.It Sy run_msgs
This runs
.Xr msgs 1
with the
.Fl c
argument.
.It Sy expire_news
This runs the
.Pa /etc/expire.news
script.
.It Sy purge_accounting
This ages accounting files in
.Pa /var/account .
.It Sy run_calendar
This runs
.Xr calendar 1
with the
.Fl a
argument.
.It Sy check_disks
This uses the
.Xr df 1
and
.Xr dump 8
to give disk status, and also reports failed
.Xr raid 4
components.
.It Sy show_remote_fs
In check_disks, show remote file systems, which are not reported on by
default.
.It Sy check_mailq
This runs
.Xr mailq 1 .
.It Sy check_network
This runs
.Xr netstat 1
with the
.Fl i
argument, and also checks the
.Xr rwhod 8
database, and runs
.Xr ruptime 1
if there are hosts in
.Pa /var/rwho .
.It Sy full_netstat
By default,
.Sy check_network
outputs a summarized version of the
.Xr netstat 1
report.
If a full version of the output run with the
.Fl inv
options is desired, set this variable.
.It Sy run_fsck
This runs
.Xr fsck 8
with the
.Fl n
option.
.It Sy run_rdist
This runs
.Xr rdist 1
with
.Pa /etc/Distfile .
.It Sy run_security
This runs the
.Pa /etc/security
script looking for possible security problems with the system.
.It Sy run_skeyaudit
Runs the
.Xr skeyaudit 1
program to check the S/Key database and informs users of S/Keys that
are about to expire.
.It Sy run_makemandb
If the
.Pa /etc/man.conf
file exists, runs the
.Xr makemandb 8
utility to update the
.Pa man.db
database for use by
.Xr apropos 1 .
.It Sy fetch_pkg_vulnerabilities
Refreshes the local database of package vulnerabilities.
See the settings in
.Xr security.conf 5
for details on the actual package checks.
.El
.Pp
The variables described below can be set to modify the tests:
.Bl -tag -width fetch_pkg_vulnerabilities
.It Sy find_core_ignore_fstypes
Lists filesystem types to ignore during the
.Sy find_core
phase.
Prefixing the type with a
.Sq \&!
inverts the match.
For example,
.Ql procfs !local
will ignore
.Ql procfs
type filesystems and filesystems that are not
.Ql local .
.It Sy find_core_ignore_paths
Lists paths to ignore during the
.Sy find_core
phase.
For example,
.Ql Pa /export
will not descend into any directories under the
.Ql Pa /export
hierarchy.
This, on a file server, allows to skip
user data while still scanning system files.
.It Sy run_fsck_flags
Extra options to be passed to
.Xr fsck 8
if
.Sy run_fsck
is enabled.
.It Sy send_empty_security
If set, the report generated by the
.Sy run_security
phase will always be sent, even if it is empty.
.It Sy pkgdb_dir
.Em DEPRECATED .
Please set
.Dv PKGDB_DIR
in
.Xr pkg_install.conf 5
instead.
.Pp
If defined, points to the location of the packages database.
Defaults to
.Pa /var/db/pkg .
.El
.Sh FILES
.Bl -tag -width /etc/defaults/daily.conf -compact
.It Pa /etc/daily
daily maintenance script
.It Pa /etc/daily.conf
daily maintenance configuration
.It Pa /etc/defaults/daily.conf
default settings, overridden by
.Pa /etc/daily.conf
.It Pa /etc/daily.local
local site additions to
.Pa /etc/daily
.El
.Sh SEE ALSO
.Xr monthly 5 ,
.Xr security.conf 5 ,
.Xr weekly 5
.Sh HISTORY
The
.Pa /etc/daily.conf
file appeared in
.Nx 1.3 .