2003-12-08 14:20:35 +03:00
|
|
|
.\" $NetBSD: daily.conf.5,v 1.18 2003/12/08 11:20:35 wiz Exp $
|
1997-01-05 14:50:12 +03:00
|
|
|
.\"
|
|
|
|
.\" 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.
|
1997-10-10 09:39:47 +04:00
|
|
|
.\" 3. The name of the author may not be used to endorse or promote products
|
1997-01-05 14:50:12 +03:00
|
|
|
.\" derived from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" 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.
|
|
|
|
.\"
|
2003-12-08 14:20:35 +03:00
|
|
|
.Dd December 8, 2003
|
1997-01-05 14:50:12 +03:00
|
|
|
.Dt DAILY.CONF 5
|
1999-03-17 23:19:44 +03:00
|
|
|
.Os
|
1997-01-05 14:50:12 +03:00
|
|
|
.Sh NAME
|
|
|
|
.Nm daily.conf
|
1997-01-07 10:31:32 +03:00
|
|
|
.Nd daily maintenance configuration file
|
1997-01-05 14:50:12 +03:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
file specifies which of the standard
|
|
|
|
.Pa /etc/daily
|
|
|
|
services are performed. The
|
|
|
|
.Pa /etc/daily
|
|
|
|
script is run, by default, every night on a
|
|
|
|
.Nx
|
|
|
|
system.
|
|
|
|
.Pp
|
2003-12-08 14:20:35 +03:00
|
|
|
The variables described below can be set to
|
2003-12-08 06:59:26 +03:00
|
|
|
.Dq YES
|
|
|
|
or
|
2003-12-08 14:20:35 +03:00
|
|
|
.Dq NO
|
|
|
|
in the
|
2003-12-08 06:59:26 +03:00
|
|
|
.Pa /etc/daily.conf
|
|
|
|
file.
|
2003-12-08 14:20:35 +03:00
|
|
|
Most default to
|
2003-12-08 06:59:26 +03:00
|
|
|
.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.)
|
1997-01-05 14:50:12 +03:00
|
|
|
.Bl -tag -width purge_accounting
|
|
|
|
.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
|
2000-11-17 13:14:16 +03:00
|
|
|
with the
|
|
|
|
.Fl c
|
|
|
|
argument.
|
1997-01-05 14:50:12 +03:00
|
|
|
.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
|
2000-11-17 13:14:16 +03:00
|
|
|
with the
|
|
|
|
.Fl a
|
|
|
|
argument.
|
1997-01-05 14:50:12 +03:00
|
|
|
.It Sy check_uucp
|
|
|
|
This runs the
|
|
|
|
.Pa /etc/uuclean.daily
|
|
|
|
script, as the daemon user, and runs
|
|
|
|
.Xr uustat 1
|
2000-11-17 13:14:16 +03:00
|
|
|
with the
|
|
|
|
.Fl a
|
|
|
|
argument.
|
1997-01-05 14:50:12 +03:00
|
|
|
.It Sy check_disks
|
|
|
|
This uses the
|
|
|
|
.Xr df 1
|
|
|
|
and
|
|
|
|
.Xr dump 8
|
2002-01-28 15:29:38 +03:00
|
|
|
to give disk status, and also reports failed
|
|
|
|
.Xr raid 4
|
2002-01-28 12:02:51 +03:00
|
|
|
components.
|
2003-12-08 04:16:22 +03:00
|
|
|
.It Sy show_remote_fs
|
|
|
|
In check_disks, show remote file systems, which are not reported on by
|
|
|
|
default.
|
1997-01-05 14:50:12 +03:00
|
|
|
.It Sy check_mailq
|
|
|
|
This runs
|
|
|
|
.Xr mailq 1 .
|
|
|
|
.It Sy check_network
|
|
|
|
This runs
|
|
|
|
.Xr netstat 1
|
2000-11-17 13:14:16 +03:00
|
|
|
with the
|
|
|
|
.Fl i
|
|
|
|
argument, and also checks the
|
1997-01-05 14:50:12 +03:00
|
|
|
.Xr rwhod 8
|
|
|
|
database, and runs
|
|
|
|
.Xr ruptime 1
|
|
|
|
if there are hosts in
|
|
|
|
.Pa /var/rwho .
|
2003-12-08 01:22:48 +03:00
|
|
|
.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.
|
1997-01-05 14:50:12 +03:00
|
|
|
.It Sy run_fsck
|
|
|
|
This runs
|
|
|
|
.Xr fsck 8
|
2000-11-17 13:14:16 +03:00
|
|
|
with the
|
|
|
|
.Fl n
|
|
|
|
option.
|
1997-01-05 14:50:12 +03:00
|
|
|
.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.
|
2000-08-25 05:11:42 +04:00
|
|
|
.It Sy run_skeyaudit
|
2001-03-15 05:23:47 +03:00
|
|
|
Runs the
|
2001-04-04 15:12:28 +04:00
|
|
|
.Xr skeyaudit 1
|
2001-03-15 05:23:47 +03:00
|
|
|
program to check the S/Key database and informs users of S/Keys that
|
|
|
|
are about to expire.
|
1997-01-05 14:50:12 +03:00
|
|
|
.El
|
2003-02-22 01:35:46 +03:00
|
|
|
.Pp
|
|
|
|
The variables described below can be set to modify the tests:
|
|
|
|
.Bl -tag -width check_network
|
|
|
|
.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.
|
|
|
|
.El
|
1997-01-05 14:50:12 +03:00
|
|
|
.Sh FILES
|
2003-12-08 06:59:26 +03:00
|
|
|
.Bl -tag -width /etc/defaults/daily.conf -compact
|
2000-01-10 20:03:49 +03:00
|
|
|
.It Pa /etc/daily
|
|
|
|
daily maintenance script
|
|
|
|
.It Pa /etc/daily.conf
|
|
|
|
daily maintenance configuration
|
2003-12-08 06:59:26 +03:00
|
|
|
.It Pa /etc/defaults/daily.conf
|
|
|
|
default settings, overridden by
|
|
|
|
.Pa /etc/daily.conf
|
2000-01-10 20:03:49 +03:00
|
|
|
.It Pa /etc/daily.local
|
|
|
|
local site additions to
|
1997-01-05 14:50:12 +03:00
|
|
|
.Pa /etc/daily
|
2000-01-10 20:03:49 +03:00
|
|
|
.El
|
1997-01-05 14:50:12 +03:00
|
|
|
.Sh SEE ALSO
|
1997-01-07 10:31:32 +03:00
|
|
|
.Xr monthly.conf 5 ,
|
2001-09-11 05:01:56 +04:00
|
|
|
.Xr security.conf 5 ,
|
|
|
|
.Xr weekly.conf 5
|
1997-01-05 14:50:12 +03:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
file appeared in
|
|
|
|
.Nx 1.3 .
|