Remove unused references to "clean_uucp" variable. (Code was already
removed.) Add rebuild_whatisdb weekly variable that defaults to NO. This is for running makewhatis weekly. This defaults to NO because it is not needed using just base sets/default install which provide the whatis.db file(s).
This commit is contained in:
parent
def3fb26c7
commit
cfbdfbc5a7
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: weekly.conf,v 1.2 2000/11/08 23:17:50 lukem Exp $
|
||||
# $NetBSD: weekly.conf,v 1.3 2007/02/15 23:04:10 reed Exp $
|
||||
#
|
||||
# /etc/defaults/weekly.conf --
|
||||
# default configuration of /etc/weekly.conf
|
||||
|
@ -9,5 +9,5 @@
|
|||
# EDIT /etc/weekly.conf INSTEAD.
|
||||
#
|
||||
|
||||
clean_uucp=YES
|
||||
rebuild_locatedb=YES
|
||||
rebuild_whatisdb=NO
|
||||
|
|
12
etc/weekly
12
etc/weekly
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: weekly,v 1.21 2006/11/12 01:22:57 christos Exp $
|
||||
# $NetBSD: weekly,v 1.22 2007/02/15 23:04:10 reed Exp $
|
||||
# from: @(#)weekly 8.2 (Berkeley) 1/2/94
|
||||
#
|
||||
|
||||
|
@ -79,6 +79,16 @@ if checkyesno rebuild_locatedb; then
|
|||
fi
|
||||
fi
|
||||
|
||||
if checkyesno rebuild_whatisdb; then
|
||||
echo ""
|
||||
if [ -f /etc/man.conf -o -d /usr/share/man ]; then
|
||||
echo "Rebuilding whatis databases:"
|
||||
nice -n 5 /usr/libexec/makewhatis -f
|
||||
else
|
||||
echo "Not rebuilding whatis databases"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f /etc/weekly.local ]; then
|
||||
. /etc/weekly.local > $TMP 2>&1
|
||||
if [ -s $TMP ] ; then
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: weekly.conf.5,v 1.8 2007/02/10 18:27:28 reed Exp $
|
||||
.\" $NetBSD: weekly.conf.5,v 1.9 2007/02/15 23:04:10 reed Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1996 Matthew R. Green
|
||||
.\" All rights reserved.
|
||||
|
@ -26,7 +26,7 @@
|
|||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd December 30, 1996
|
||||
.Dd February 15, 2007
|
||||
.Dt WEEKLY.CONF 5
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -56,14 +56,23 @@ file.
|
|||
(Note that you should never edit
|
||||
.Pa /etc/defaults/weekly.conf
|
||||
directly, as it is often replaced during system upgrades.)
|
||||
.Bl -tag -width check_network
|
||||
.It Sy clean_uucp
|
||||
This runs the weekly uucp clean script,
|
||||
.Pa /usr/lib/uucp/clean.weekly .
|
||||
.Bl -tag -width rebuild_locatedb
|
||||
.It Sy rebuild_locatedb
|
||||
This rebuilds the locate database,
|
||||
.Pa /var/db/locate.database ,
|
||||
which must also exist, in order to be rebuilt.
|
||||
.It Sy rebuild_whatisdb
|
||||
This rebuilds the whatis database(s).
|
||||
Note that
|
||||
.Nx
|
||||
provides a default whatis.db for the system manual pages and
|
||||
this may not be needed.
|
||||
(Adjust your
|
||||
.Pa /etc/man.conf
|
||||
as necessary.
|
||||
See
|
||||
.Xr man.conf 5
|
||||
for details.)
|
||||
.El
|
||||
.Sh FILES
|
||||
.Bl -tag -width /etc/weekly.local -compact
|
||||
|
|
Loading…
Reference in New Issue